Skip to content

Commit

Permalink
feat: add coalesce function (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
richtia authored Sep 2, 2022
1 parent a4d6f35 commit 63c5da0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions extensions/functions_comparison.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,16 @@ scalar_functions:
- value: any1
- value: any1
return: any1
-
name: "coalesce"
description: >-
Evaluate arguments from left to right and return the first argument that is not null. Once
a non-null argument is found, the remaining arguments are not evaluated.
If all arguments are null, return null.
impls:
- args:
- value: any1
variadic:
min: 2
return: any1

0 comments on commit 63c5da0

Please sign in to comment.