Repository navigation
Keep DDL out of the AST fuzzer in 05292_standalone_expression_scalar_subquery_with_join - #123423
Conversation
…subquery_with_join Under the stress profile the AST fuzzer replays this test's TTL and CHECK DDL. It can rewrite a table in the scalar subquery into `merge()` or `cluster()`; `ALTER ... MODIFY TTL` accepts that, but the subquery cannot be analysed while the database loads, so the test's own re-attach fails, the final `DROP DATABASE` never runs and the server restart after the stress run fails too. Pin `ast_fuzzer_any_query = 0` so only SELECTs are fuzzed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (2 nits).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261002-054800 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261002-051700 |
|
Workflow [PR], commit [24f7525] Summary: ✅ AI ReviewSummaryThis PR disables all-query AST fuzzing for Final Verdict
|
|
@groeneai is this fixing the root cause? |
|
Have to merge to fix CI |
|
No, it removes the trigger. The stress profile's AST fuzzer replays 05292's DDL and rewrites The root cause is an older engine gap (26.3 and later): a table function in a TTL or
|
c4efb96
Related: #122795
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Test-only change, no changelog entry required.
Description
Stress testfailed withCannot start clickhouse-server, the server dying on all 11 start attempts:Failing jobs:
https://github.com/ClickHouse/ClickHouse/actions/runs/36941655753/job/110681526275
https://github.com/ClickHouse/ClickHouse/actions/runs/36954171364/job/110706069151
The table is a fuzzer clone from 05292, which I added in #122795. The stress profile sets
ast_fuzzer_any_query(tests/docker_scripts/stress_tests.lib:211), so the server-side AST fuzzerreplays this file's DDL too. A replay can turn a table in a TTL or CHECK scalar subquery into
merge(),remote()orcluster().ALTER ... MODIFY TTLaccepts that, but the subquery cannot be analysedwhile the database loads. The test's own
DETACH/ATTACH DATABASEthen fails, the finalDROP DATABASEnever runs, and the restart after the stress run fails whenasync_load_databasesis randomized to
false.This pins
ast_fuzzer_any_query = 0, the remedy of #121952 for 05234. NoCREATE,ALTER,DETACHorATTACHof this file is replayed (executeQuery.cpp:3457); itsSELECTs still are.Validation on a debug build with the stress fuzzer profile: 50 runs before the change replayed 2548
DDL statements on the test's tables, 163 of them with a table function in a TTL or CHECK subquery.
50 runs after it replayed 0 DDL and 1566
SELECTs, all OK. Replaying the clone andALTERfrom theCI log reproduces the same error at
ATTACH DATABASE, and the restart exits with code 210. 50/50randomized runs pass.
The ALTER/load asymmetry itself is pre-existing since at least 26.3; its CHECK part belongs to #96886.
Workflow [PR]
Sync PR [sync-upstream/pr/123423]
Version info
26.10.1.1299-master(included in26.10and later)