Repository navigation
Enable enable_join_runtime_filters_index_analysis - #121859
Conversation
|
Workflow [PR], commit [76e75a2] Summary: ✅
AI ReviewSummaryThis PR flips Findings
Final VerdictChanges needed before merge: the default flip currently adds build-side work in unsupported / no-op cases instead of restricting the extra cost to joins that can actually prune on the probe side. LLVM Coverage ReportMeasured on commit 76e75a2.
Changed lines: Changed C/C++ lines covered: 16/16 (100.00%) · Uncovered code |
| Run a second pass index analysis (via use_skip_indexes_on_data_read) to prune granules on LHS of a join. | ||
| DECLARE(Bool, enable_join_runtime_filters_index_analysis, true, R"( | ||
| Prune granules on the probe side of a JOIN with the runtime filter collected from the build side, see `enable_join_runtime_filters`. | ||
| Only has an effect if `use_skip_indexes_on_data_read = 1`. |
There was a problem hiding this comment.
This default flip also turns on build-side key-range tracking for every positive runtime filter, not just for reads that can actually prune granules. joinRuntimeFilter.cpp passes enable_join_runtime_filters_index_analysis straight into RuntimeFilterBuildOptions.track_key_range, so BuildRuntimeFilterTransform will call RuntimeFilter::enableIndexAnalysis() and every build block on integer/date keys pays an extra getExtremes() pass even when the probe side cannot use it: for example when use_skip_indexes_on_data_read = 0, when the probe side is not a MergeTree read, or when the join key has no PK / eligible skip index. That makes the setting stop being a no-op in the documented "no effect" cases and adds per-block work to all hash joins with runtime filters. Please gate range tracking on the probe side actually registering an index-analysis descriptor (or at least on use_skip_indexes_on_data_read) before making this default-on.
Follow-up to #109085
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Enables setting
enable_join_runtime_filters_index_analysisby default which enables pruning granules during the probe phase of joins.Workflow [PR]
Sync PR [sync-upstream/pr/121859]
Version info
26.10.1.591-master(included in26.10and later)