-
I don't understand mask in aggregation, does anyone understand it? |
Beta Was this translation helpful? Give feedback.
Answered by
martint
Oct 24, 2024
Replies: 1 comment 3 replies
-
It's used to implement filtered aggregations: https://trino.io/docs/current/functions/aggregate.html#filtering-during-aggregation The aggregation operator uses the mask column to determine whether to include the corresponding input in the aggregation function computation. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
yx-keith
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's used to implement filtered aggregations: https://trino.io/docs/current/functions/aggregate.html#filtering-during-aggregation
The aggregation operator uses the mask column to determine whether to include the corresponding input in the aggregation function computation.