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 bool_and and bool_or aggregate functions #314

Merged
merged 4 commits into from
Sep 8, 2022
Merged
Changes from 3 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
24 changes: 24 additions & 0 deletions extensions/functions_boolean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,27 @@ scalar_functions:
- value: boolean?
name: a
return: boolean?
-
name: "bool_and"
description: >
If any value in the input is false, false is returned. If the input is
empty or only contains nulls, null is returned. Otherwise, true is
returned.
impls:
- args:
- value: boolean
name: x
nullability: DECLARED_OUTPUT
return: boolean?
-
name: "bool_or"
description: >
If any value in the input is true, true is returned. If the input is
empty or only contains nulls, null is returned. Otherwise, false is
returned.
impls:
- args:
- value: boolean
name: x
nullability: DECLARED_OUTPUT
return: boolean?