[improvement](parquet) Fuse dictionary selection planning - #66508
Open
Gabriel39 wants to merge 6 commits into
Open
[improvement](parquet) Fuse dictionary selection planning#66508Gabriel39 wants to merge 6 commits into
Gabriel39 wants to merge 6 commits into
Conversation
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
Contributor
Author
|
/review |
Contributor
|
Codex automated review failed and did not complete. Error: All Codex review accounts are usage-limited; earliest retry is 2026-08-08T03:32:00Z. Please trigger /review again after that time. |
Contributor
Author
|
run buildall |
Contributor
Author
|
/review |
Contributor
|
Codex automated review failed and did not complete. Error: All Codex review accounts are usage-limited; earliest retry is 2026-08-08T03:32:00Z. Please trigger /review again after that time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Predicate-only dictionary filtering currently expands definition levels and row selection into
ColumnSelectVector, then scans that row-oriented state again to rebuild physical selection ranges and the selected NULL layout. Fragmented nullable filters spend significant CPU in these two planning passes before dictionary IDs are decoded.Same-column conjuncts are combined into one dictionary-id bitmap before row decoding. Their incoming row selection therefore remains identity, which previously kept this common shape on the two-pass planner.
What is changed?
ColumnSelectVector.This PR does not change predicate decomposition, supported data types, decode strategy, or merge-read behavior. It is stacked on #66504.
Performance
Release build, 65,536 rows, CPU-pinned runs with 7 repetitions. The table reports median CPU time; lower is better.
The last two negative controls are routed to the existing planner; their sub-1% differences are measurement noise from identical code paths.
Validation