Skip to content

Perf: Add short circuit for primitive vectorized equal_to#23343

Open
Rich-T-kid wants to merge 1 commit into
apache:mainfrom
Rich-T-kid:rich-T-kid/re-order-compare-groupval
Open

Perf: Add short circuit for primitive vectorized equal_to#23343
Rich-T-kid wants to merge 1 commit into
apache:mainfrom
Rich-T-kid:rich-T-kid/re-order-compare-groupval

Conversation

@Rich-T-kid

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

other groupColumn traits follow the pattern of short circuiting the equal_to comparison if a previous groupColumn set that bit to zero. This is because all traits needs to assert that the value is the same for each row, otherwise its a new tuple. This avoids an un-needed (potentially expensive) comparison.

What changes are included in this PR?

adds an early check to read the bit at the current index.

Are these changes tested?

yes

Are there any user-facing changes?

no

@github-actions github-actions Bot added the physical-plan Changes to the physical-plan crate label Jul 6, 2026
@Rich-T-kid

Copy link
Copy Markdown
Contributor Author

This is the only trait to not follow the pattern and its needed for #23342 to work correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-plan Changes to the physical-plan crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant