fix(query): prune runtime inlists with block bloom#19516
Merged
zhang2014 merged 2 commits intodatabendlabs:mainfrom Mar 8, 2026
Merged
fix(query): prune runtime inlists with block bloom#19516zhang2014 merged 2 commits intodatabendlabs:mainfrom
zhang2014 merged 2 commits intodatabendlabs:mainfrom
Conversation
dantengsky
approved these changes
Mar 8, 2026
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.
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
IN-list filtersLEFT SEMInew hash join runtime filter packet generation so probe-side scans receive the built filterChanges
inlist_runtime_bloom_prune_thresholdto gate the optimization byIN-list cardinalityinlist_value_countwhen building runtimeIN-list filters and carry it through runtime filter entriesFuseBlockPartInfowith bloom index location/size so scan-side runtime pruning can read block bloom indexesIN-list value is absentSemiLeftHashJointo accumulate and merge runtime filter packets, and always register runtime-filter waiters for probe targetsImplementation
IN-list cardinality in runtime filter conversion and use it to guard bloom pruning withinlist_runtime_bloom_prune_threshold.ExprRuntimePrunerfor runtimeIN-list filters when statistics folding keeps the block.LEFT SEMInew-hash-join runtime filter packet merging and remove the unnecessary cluster guard around runtime-filter readiness registration.EXPLAIN ANALYZEshows runtime bloom pruning while range pruning remains ineffective.Tests
Type of change
This change is