Skip to content

Commit

Permalink
feat: add least and greatest functions to functions_comparison.yml (#247
Browse files Browse the repository at this point in the history
)

PR to add functions for `least` and `greatest`.

---------

Co-authored-by: Weston Pace <[email protected]>
  • Loading branch information
richtia and westonpace authored Oct 31, 2023
1 parent 6c88a1e commit b3071bc
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions extensions/functions_comparison.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,47 @@ scalar_functions:
variadic:
min: 2
return: any1
-
name: "least"
description: >-
Evaluates each argument and returns the smallest one. The function will return
null if any argument evaluates to null.
impls:
- args:
- value: T
variadic:
min: 2
return: T|?
-
name: "least_skip_null"
description: >-
Evaluates each argument and returns the smallest one. The function will return
null only if all arguments evaluate to null.
impls:
- args:
- value: T
variadic:
min: 2
return: T&?
-
name: "greatest"
description: >-
Evaluates each argument and returns the largest one. The function will return
null if any argument evaluates to null.
impls:
- args:
- value: T
variadic:
min: 2
return: T|?
-
name: "greatest_skip_null"
description: >-
Evaluates each argument and returns the largest one. The function will return
null only if all arguments evaluate to null.
impls:
- args:
- value: T
variadic:
min: 2
return: T&?

0 comments on commit b3071bc

Please sign in to comment.