Repository navigation
Add runtime-filter Variant/Dynamic build-side regression tests - #108734
alexey-milovidov merged 3 commits into
Conversation
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-0:20260628-093600 |
|
cc @Avogar — could you review this? Test-only: it adds build-side regression coverage to 04327_runtime_filter_nested_variant for the join runtime-filter exact-values Set construction over Variant/Dynamic keys (the incremental |
|
Workflow [PR], commit [7c471fc] Summary: ✅ AI ReviewSummaryThis PR extends Final Verdict✅ No new blockers or majors found in the current diff. |
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 304 line(s), 46 function(s) across 113 file(s) · Details Top files
|
0b19c36 to
57de2db
Compare
Extends 04327_runtime_filter_nested_variant with cases that exercise the runtime-filter build side, not just the probe side. The exact-values Set is built incrementally, so each build block after the first goes through Set::appendSetElements -> ColumnVariant / ColumnDynamic insertRangeFrom, and each per-thread filter is combined via ExactContainsRuntimeFilter::merge. The insert path is exercised with numbers() cast to Variant/Dynamic and a small max_block_size so the build side emits many tiny blocks (format() reparses its whole input into one block, so it never hit the incremental path). The merge path needs several parallel build streams: numbers() is forced to a single stream, so BuildRuntimeFilterStep captures one build stream (filters_to_merge = 0) and merge() never runs. The parallel-hash case therefore uses numbers_mt(), which fans the build side across max_threads streams so multiple BuildRuntimeFilterTransform instances are merged. query_plan_join_swap_table = false keeps the right table the build side. count() is invariant to join order and block size. Co-Authored-By: Claude Opus 4.8 <[email protected]>
57de2db to
169355a
Compare
CI finish ledger — 169355aCI finished on this head (Finish Workflow: success). This is a test-only PR (diff:
No PR-caused failure: Session id: cron:our-pr-ci-monitor:20260629-170000 |
|
Investigated the |
|
Fixing PR for the flaky |
CI finish ledger — 169355aCI fully finished (Finish Workflow pass). This PR adds only
Session id: cron:our-pr-ci-monitor:20260703-053000 |
|
Update on the 02669_alter_modify_to_nullable ledger line: PR #109205 (retry rewrite) was closed unmerged. Deeper analysis (on #109205) showed the signature is a canary for a real, time-clustered metadata/commands drift, not a constant-rate flake, so rewriting the test to retry would mask what it exists to catch. The underlying drift was fixed upstream by #104822 (merged 2026-07-03); the fail-open path is now observable via #110157. The flake is gone from master (0 occurrences before 2026-06-09 / after ~2026-07-01), so there is nothing to change in the test. Issue #108845 closed as resolved. |
…e-filter-variant-build-merge-coverage
The four build-side cases asserted only count(), so they would stay green even if the planner stopped building or applying the runtime filter for this shape. Add a plan/pipeline assertion to each: EXPLAIN actions = 1 must contain a BuildRuntimeFilter action, and the numbers_mt merge case must show multiple BuildRuntimeFilterTransform instances (proving filters_to_merge > 0 so ExactContainsRuntimeFilter::merge runs). The assertions pin enable_join_runtime_filters = 1 so the CI randomizer cannot disable the filter under them. Co-Authored-By: Claude Opus 4.8 <[email protected]>
CI finish ledger — 7c471fcEvery failure below has an owner: a fixing PR (ours or external), or a full-effort fix task whose fixing-PR link will be posted here when it opens. Only
All other checks pass on this head (Style check pass, both Session id: cron:our-pr-ci-monitor:20260714-163000 |
…ilter-variant-build-merge-coverage Add runtime-filter Variant/Dynamic build-side regression tests
Related: #101415
Related: #106931
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Test-only. Extends
04327_runtime_filter_nested_variantwith regression cases that exercise the join runtime-filter build side overVariant/Dynamickeys, complementing the existing cases which focus on the probe side (__applyFilterNULL handling, fixed in #106931 / #101415).The exact-values runtime-filter
Setis built incrementally: the first build block is adopted as the set element column viamutate, and every later block (plus every merged per-thread filter,ExactContainsRuntimeFilter::merge) goes throughSet::appendSetElements->IColumn::insertRangeFrom->ColumnVariant::insertRangeFromImpl(and, forDynamic, the "samevariant_names" fast path inColumnDynamic::insertRangeFrom). The original test only had one distinct build value per query, so this incremental insert/merge path was not covered.The new cases force many tiny build blocks (
max_block_size = 1) and parallel hash (max_threads = 8,join_algorithm = 'parallel_hash') overVariant(String, Bool), multi-alternativeDynamic, andTuple(Dynamic, ...)keys, so build blocks whose local Variant discriminator order differs are inserted and merged. All cases pass on currentmasterand are deterministic across repeated runs.Version info
26.7.1.948(included in26.7and later)