Skip to content

What is the meaning of mask in aggregation? can we use filterNode to instead? #23889

Answered by martint
yx-keith asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@yx-keith
Comment options

yx-keith Oct 24, 2024
Collaborator Author

@yx-keith
Comment options

yx-keith Oct 24, 2024
Collaborator Author

@yx-keith
Comment options

yx-keith Oct 24, 2024
Collaborator Author

Answer selected by yx-keith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #23888 on October 24, 2024 03:45.