mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-04 09:59:16 +00:00
To avoid having to specify each spec by hand (which can miss specs to be added), the test infrastructure now performs classpath discovery so that each spec added, is automatically considered. Relates #40358 (cherry picked from commit d0f60b4425c731509aa8ca765d55f563f866ef90)
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
[role="xpack"]
|
|
[testenv="basic"]
|
|
[[sql-syntax-show-functions]]
|
|
=== SHOW FUNCTIONS
|
|
|
|
.Synopsis
|
|
[source, sql]
|
|
----
|
|
SHOW FUNCTIONS [ LIKE pattern<1>? ]?
|
|
----
|
|
|
|
<1> SQL match pattern
|
|
|
|
.Description
|
|
|
|
List all the SQL functions and their type. The `LIKE` clause can be used to restrict the list of names to the given pattern.
|
|
|
|
["source","sql",subs="attributes,callouts,macros"]
|
|
----
|
|
include-tagged::{sql-specs}/docs/docs.csv-spec[showFunctions]
|
|
----
|
|
|
|
The list of functions returned can be customized based on the pattern.
|
|
|
|
It can be an exact match:
|
|
["source","sql",subs="attributes,callouts,macros"]
|
|
----
|
|
include-tagged::{sql-specs}/docs/docs.csv-spec[showFunctionsLikeExact]
|
|
----
|
|
|
|
A wildcard for exactly one character:
|
|
["source","sql",subs="attributes,callouts,macros"]
|
|
----
|
|
include-tagged::{sql-specs}/docs/docs.csv-spec[showFunctionsLikeChar]
|
|
----
|
|
|
|
A wildcard matching zero or more characters:
|
|
["source","sql",subs="attributes,callouts,macros"]
|
|
----
|
|
include-tagged::{sql-specs}/docs/docs.csv-spec[showFunctionsLikeWildcard]
|
|
----
|
|
|
|
Or of course, a variation of the above:
|
|
["source","sql",subs="attributes,callouts,macros"]
|
|
----
|
|
include-tagged::{sql-specs}/docs/docs.csv-spec[showFunctionsWithPattern]
|
|
----
|