Repository navigation
Pin away the statistics randomization in 05182 - #120084
Conversation
`05182_join_order_conflict_detector_cast_null_propagation` asserts a join plan shape, and it makes `t1` look expensive through `param__internal_join_table_stat_hints` to get the reordering it wants to observe. When the table carries automatic statistics that do not include `basic`, the optimizer has its own estimate, costs the join the other way, and both reassociation arms - the non-vacuity controls - stop reassociating, so the test fails on the plan lines while every row and exception arm still agrees. `clickhouse-test` randomizes `auto_statistics_types` to a random subset of `uniq, uniq_v2, tdigest, countmin, basic`, so a run reddens whenever the subset leaves `basic` out. Measured against master `7fe32951` with `clickhouse local`: `uniq` alone, `uniq_v2` alone, `tdigest` alone, `countmin` alone and `uniq_v2,tdigest` all flip the plan, while `''`, `basic`, `basic,uniq`, `basic,tdigest`, `basic,countmin`, `basic, uniq_v2` (the default) and the full set of five keep the plan the reference records. Creating the tables with `auto_statistics_types = ''` pins it: the whole test output then matches its reference, and the three `CANNOT_INSERT_NULL_IN_ORDINARY_COLUMN` arms still raise. The test only became reachable this way when #119305 re-landed the OUTER-to-INNER conversion, which is what makes these joins reorderable at all: CIDB has 0 failures in 12428 runs over 1267 commits before `a88f878d7`, and 26 in 506 runs over 120 commits after it. Caused by: #119305 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Workflow [PR], commit [637a0e6] Summary: ✅ AI ReviewSummaryThis PR pins Final Verdict✅ No review findings. |
|
🕵 The hung check is failing fleet-wide independently of any change: 8 failures in the last 30 hours, 4 of them on master itself ( 🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=120084&sha=637a0e6852ff976b0ff60cf5b33b6c25c69b4a89&name_0=PR&name_1=Stress%20test%20(arm_msan) and provide a fix in a separate PR. If the fix is already in progress, link it here. |
|
The hung The
The fix is already in progress. #108357 adds On the fleet-wide count:
So both master hits in that window have an owner, and neither is reachable from this pull request. |
…d-codes-require-lazy Pick up ClickHouse#120084, which pins the randomized `auto_statistics_types` away in `05182_join_order_conflict_detector_cast_null_propagation`. That test is the sole failure in this branch's `Stateless tests (arm_binary, parallel)` run and is unrelated to this change, so the run needs the fix to be able to go green. Co-Authored-By: Claude Opus 5 <[email protected]>
Bring in the statistics-randomization fix for `05182` and refresh CI. Preserve the existing profile-counter feature diff without modification. Related: ClickHouse#118532 Related: ClickHouse#120084
The branch was 542 commits behind and CI kept failing on two tests that master has already dealt with: `05182_join_order_conflict_detector_cast_null_propagation` pinned away the statistics randomization in #120084, and the `plus`/`minus` injectivity that made `03710_analyzer_limit_by_aggregate_validation` fail was reverted in #120118. Re-running could not pick either up, because a re-run rebuilds the merge ref computed when the run was created. Related: #120167 Related: #120151 Co-Authored-By: Claude Fable 5.1 <[email protected]>
05182_join_order_conflict_detector_cast_null_propagationasserts a join plan shape, and it makest1look expensive throughparam__internal_join_table_stat_hintsto get the reordering it wants to observe. A table that carries automatic statistics withoutbasicgets the optimizer an estimate of its own, which costs the join the other way, so both reassociation arms - the non-vacuity controls of the test - stop reassociating. Every row arm and every exception arm still agrees, which is why only the plan half of the reference differs.clickhouse-testrandomizesauto_statistics_typesto a random subset ofuniq, uniq_v2, tdigest, countmin, basic, so a run reddens whenever the subset leavesbasicout. Measured against master7fe32951withclickhouse local:auto_statistics_types'',basic,basic,uniq,basic,tdigest,basic,countmin,basic, uniq_v2(the default), all fiveuniq,uniq_v2,tdigest,countmin,uniq_v2,tdigest,countmin,uniq_v2,tdigest(the value CI reported)Creating the tables with
auto_statistics_types = ''pins it. With this change the whole test output matches its reference and the threeCANNOT_INSERT_NULL_IN_ORDINARY_COLUMNarms still raise; with the randomized value the same binary reproduces the CI failure exactly.The test only became reachable this way when #119305 re-landed the OUTER-to-INNER conversion, which is what makes these joins reorderable at all. CIDB: 0 failures in 12428 runs over 1267 commits before
a88f878d7, 26 failures in 506 runs over 120 commits after it. A report on master: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=a88f878d7c1350301bc015fc06e7d356ee90e487&name_0=MasterCI&name_1=Stateless%20tests%20%28amd_release%2C%20parallel%2C%202%2F2%29One observation for the join-order owners that this change does not address: a table with statistics but without
basicestimates worse than a table with no statistics at all, and that estimate outranks an explicit cardinality passed inparam__internal_join_table_stat_hints.Related: #119305
Related: #119512
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required.
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/120084]
Version info
26.9.1.1502(included in26.9and later)