Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add coalesce function #301

Merged
merged 1 commit into from
Sep 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions extensions/functions_comparison.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,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