Skip to content

any(): Do not rip fusion inputs - #7151

Open
mattnibs wants to merge 1 commit into
mainfrom
any-no-rip
Open

any(): Do not rip fusion inputs#7151
mattnibs wants to merge 1 commit into
mainfrom
any-no-rip

Conversation

@mattnibs

@mattnibs mattnibs commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

This commit fixes an issue with the any aggregator where fusion values were not getting perserved. It also adds vector.NoRip to aggregator aggExprs because this was also ripping fusion values where we do not want them to.

Fixes #6897

@mattnibs
mattnibs requested a review from a team July 27, 2026 16:46
Comment thread runtime/ztests/op/aggregate/null.yaml
@mattnibs
mattnibs force-pushed the any-no-rip branch 2 times, most recently from 97721a6 to 84cbd96 Compare July 27, 2026 21:43
case vector.KindFusion:
return firstNonNullSlot(vector.Super(vec))
case vector.KindUnion:
union := vec.(*vector.Union)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to handle vector.Const?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as in a Const where the value is null or a Const union?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vector.Const containing a vector.Union.

This commit fixes an issue with the any aggregator where fusion values
were not getting perserved. It also adds vector.NoRip to aggregator
aggExprs because this was also ripping fusion values where we do not
want them to.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

any aggregate function de-unions

2 participants