-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend SHOW FUNCTIONS to display whether functions have variable arity
- Loading branch information
1 parent
283e300
commit c3b0432
Showing
12 changed files
with
279 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
...c/main/resources/sql-tests/testcases/array_functions/checkArrayFunctionsRegistered.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
-- delimiter: |; ignoreOrder: true; ignoreExcessRows: true; trimValues:true | ||
concat | array(E) | E, array(E) | scalar | true | Concatenates an element to an array | | ||
concat | array(E) | array(E), E | scalar | true | Concatenates an array to an element | | ||
concat | array(E) | array(E) | scalar | true | Concatenates given arrays | | ||
cardinality | bigint | array(E) | scalar | true | Returns the cardinality (length) of the array | | ||
contains | boolean | array(T), T | scalar | true | Determines whether given value exists in the array | | ||
array_sort | array(E) | array(E) | scalar | true | Sorts the given array in ascending order according to the natural ordering of its elements. | | ||
array_sort | array(T) | array(T), function(T,T,integer) | scalar | true | Sorts the given array with a lambda comparator. | | ||
array_intersect | array(E) | array(E), array(E) | scalar | true | Intersects elements of the two given arrays | | ||
array_distinct | array(E) | array(E) | scalar | true | Remove duplicate values from the given array | | ||
concat | array(E) | E, array(E) | scalar | true | Concatenates an element to an array | false | | ||
concat | array(E) | array(E), E | scalar | true | Concatenates an array to an element | false | | ||
concat | array(E) | array(E) | scalar | true | Concatenates given arrays | true | | ||
cardinality | bigint | array(E) | scalar | true | Returns the cardinality (length) of the array | false | | ||
contains | boolean | array(T), T | scalar | true | Determines whether given value exists in the array | false | | ||
array_sort | array(E) | array(E) | scalar | true | Sorts the given array in ascending order according to the natural ordering of its elements. | false | | ||
array_sort | array(T) | array(T), function(T,T,integer) | scalar | true | Sorts the given array with a lambda comparator. | false | | ||
array_intersect | array(E) | array(E), array(E) | scalar | true | Intersects elements of the two given arrays | false | | ||
array_distinct | array(E) | array(E) | scalar | true | Remove duplicate values from the given array | false | |
16 changes: 8 additions & 8 deletions
16
...main/resources/sql-tests/testcases/binary_functions/checkBinaryFunctionsRegistered.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
-- delimiter: |; ignoreOrder: true; ignoreExcessRows: true; trimValues:true | ||
length | bigint | varbinary | scalar | true | length of the given binary | | ||
to_base64 | varchar | varbinary | scalar | true | encode binary data as base64 | | ||
to_base64url | varchar | varbinary | scalar | true | encode binary data as base64 using the URL safe alphabet | | ||
to_hex | varchar | varbinary | scalar | true | encode binary data as hex | | ||
from_base64 | varbinary | varbinary | scalar | true | decode base64 encoded binary data | | ||
from_base64 | varbinary | varchar(x) | scalar | true | decode base64 encoded binary data | | ||
from_base64url | varbinary | varbinary | scalar | true | decode URL safe base64 encoded binary data | | ||
from_base64url | varbinary | varchar(x) | scalar | true | decode URL safe base64 encoded binary data | | ||
length | bigint | varbinary | scalar | true | length of the given binary | false | | ||
to_base64 | varchar | varbinary | scalar | true | encode binary data as base64 | false | | ||
to_base64url | varchar | varbinary | scalar | true | encode binary data as base64 using the URL safe alphabet | false | | ||
to_hex | varchar | varbinary | scalar | true | encode binary data as hex | false | | ||
from_base64 | varbinary | varbinary | scalar | true | decode base64 encoded binary data | false | | ||
from_base64 | varbinary | varchar(x) | scalar | true | decode base64 encoded binary data | false | | ||
from_base64url | varbinary | varbinary | scalar | true | decode URL safe base64 encoded binary data | false | | ||
from_base64url | varbinary | varchar(x) | scalar | true | decode URL safe base64 encoded binary data | false | |
6 changes: 3 additions & 3 deletions
6
presto-product-tests/src/main/resources/sql-tests/testcases/catalog/showFunctions.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-- delimiter: |; ignoreOrder: true; ignoreExcessRows:true; trimValues:true; | ||
abs | bigint | bigint | scalar | true | absolute value | | ||
abs | double | double | scalar | true | absolute value | | ||
acos | double | double | scalar | true | arc cosine | | ||
abs | bigint | bigint | scalar | true | absolute value | false | | ||
abs | double | double | scalar | true | absolute value | false | | ||
acos | double | double | scalar | true | arc cosine | false | |
Oops, something went wrong.