fix(runtime-filter): Preserve scan pruning filters and DATE bucket ha… - #67426
Open
foxtail463 wants to merge 1 commit into
Open
fix(runtime-filter): Preserve scan pruning filters and DATE bucket ha…#67426foxtail463 wants to merge 1 commit into
foxtail463 wants to merge 1 commit into
Conversation
foxtail463
requested review from
924060929,
englefly,
morrySnow and
starocean999
as code owners
September 2, 2026 03:53
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
Contributor
TPC-H: Total hot run time: 16755 ms |
Contributor
TPC-DS: Total hot run time: 81688 ms |
Contributor
ClickBench: Total hot run time: 14.56 s |
Contributor
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
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.
Problem Summary:
When column statistics were missing or unknown, RuntimeFilterPruner could remove runtime filters that were still able to eliminate entire partitions or hash buckets. Remote TYPE_DATE IN filters were also deserialized as DATETIME values, producing a distribution hash different from the original DATE value and potentially selecting incorrect tablets.
Solution:
Introduce a unified scan-range pruning capability covering both partition and bucket pruning. When row-level selectivity cannot be estimated, retain joins containing runtime filters with this capability; decisions based on valid statistics remain unchanged.
Deserialize TYPE_DATE exact-set values with DATE semantics so their type and distribution hash survive remote runtime-filter serialization. Enable runtime-filter pruning in the existing bucket-pruning regression case so it exercises the real optimizer path.