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 1 commit
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
25 changes: 25 additions & 0 deletions extensions/functions_arithmetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,31 @@ aggregate_functions:
nullability: DECLARED_OUTPUT
ordered: true
return: LIST?<any>
- name: "bool_and"
description: >
Aggregate boolean values and returns a boolean value.
If all of the values in the aggregation are true, function returns TRUE,
else it returns FALSE if any of the returned values are false. NULL values
are ignored by this function.
impls:
- args:
- value: boolean
name: x
nullability: DECLARED_OUTPUT
return: boolean
- name: "bool_or"
description: >
Aggregate boolean values and returns a boolean value.
If any value in the aggregation is true, function returns TRUE,
else it returns FALSE if all of the returned values are false. NULL values
are ignored by this function.
impls:
- args:
- value: boolean
name: x
nullability: DECLARED_OUTPUT
return: boolean


window_functions:
- name: "row_number"
Expand Down