Repository navigation
Fix flaky 03394 shuffle-join tests under join-order randomization - #112188
Conversation
`03394_distributed_shuffle_join_with_in` and `03394_distributed_shuffle_join_with_aggregation` assert that `BuildRuntimeFilter` appears in the `EXPLAIN` plan, but neither pins the two settings that decide whether the runtime join filter is built at all. Reproduced locally with the exact randomized setting set from the CI report (https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110321&sha=fbebd96fb7f9dcee3d3bdb40df67558ffeaa1b40&name_0=PR&name_1=Stateless%20tests%20%28amd_msan%2C%20WasmEdge%2C%20parallel%2C%201%2F2%29, PR #110321) and minimized to a two-setting combination: `query_plan_optimize_join_order_randomize` nonzero together with `join_runtime_filter_min_probe_rows` above the estimated probe size. Join-order randomization changes which side is the probe side, and `joinRuntimeFilter` then skips the filter because the probe side is estimated to produce at most `join_runtime_filter_min_probe_rows` rows, so the `BuildRuntimeFilter` step disappears from the plan and the plan diff fails. Neither setting reproduces the failure alone. Pin both, mirroring `03394_distributed_shuffle_join_with_prewhere`, which already pins them for the same reason. Verified: with the randomized setting set the plan output of both tests now matches the reference exactly (before the fix `BuildRuntimeFilter` was absent in both). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Workflow [PR], commit [dbd998c] Summary: ✅ AI ReviewSummaryThis PR stabilizes Final Verdict✅ No blocking or major issues found in the current diff. |
|
Note: this overlaps with #112026, which pins |
03394_distributed_shuffle_join_with_inand03394_distributed_shuffle_join_with_aggregationassert thatBuildRuntimeFilterappears in theEXPLAINplan, but neither pins the two settings that decide whether the runtime join filter is built at all.Reproduced locally with the exact randomized setting set from the CI report below and minimized to a two-setting combination:
query_plan_optimize_join_order_randomizenonzero together withjoin_runtime_filter_min_probe_rowsabove the estimated probe size. Join-order randomization changes which side is the probe side, andjoinRuntimeFilterthen skips the filter because the probe side is estimated to produce at mostjoin_runtime_filter_min_probe_rowsrows, so theBuildRuntimeFilterstep disappears from the plan and the plan diff fails. Neither setting reproduces the failure alone.Both settings are pinned, mirroring
03394_distributed_shuffle_join_with_prewhere, which already pins them for the same reason.Verified: with the randomized setting set the plan output of both tests now matches the reference exactly (before the fix
BuildRuntimeFilterwas absent in both).CI report where this was observed: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110321&sha=fbebd96fb7f9dcee3d3bdb40df67558ffeaa1b40&name_0=PR&name_1=Stateless%20tests%20%28amd_msan%2C%20WasmEdge%2C%20parallel%2C%201%2F2%29
Related: #110321
Related: #109386
Changelog category (leave one):