Skip to content

Commit

Permalink
feat: add least and greatest functions
Browse files Browse the repository at this point in the history
  • Loading branch information
richtia committed Apr 12, 2023
1 parent 8c230af commit c58b8e4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions extensions/functions_comparison.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,30 @@ scalar_functions:
variadic:
min: 2
return: any1
-
name: "least"
description: >-
Returns the smallest value. Only return null if 'all' arguments evaluate to null.
String comparison is done in lexicographical ordering, one character at a time, from left to right.
Uppercase letters are less than lowercase letters.
impls:
- args:
- value: T
variadic:
min: 2
return: T

-
name: "greatest"
description: >-
Returns the largest value. Only return null if 'all' arguments evaluate to null.
String comparison is done in lexicographical ordering, one character at a time, from left to right.
Uppercase letters are less than lowercase letters.
impls:
- args:
- value: T
variadic:
min: 2
return: T

0 comments on commit c58b8e4

Please sign in to comment.