Repository navigation
Keep DDL out of the AST fuzzer in 04908_constraint_subquery_loading_dependency - #124408
Conversation
…ependency The stress profile replays this file's DDL through the server-side AST fuzzer. A replayed `CREATE` can read the `CHECK` source through `remote`; `CREATE` accepts it, but the database loader cannot analyse it, so the leftover clone stops the server restart. Pin `ast_fuzzer_any_query = 0` on every client call of the file 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 (0 findings). Nothing to adjudicate. Session id: cron:clickhouse-review-slot-8:20261007-105700 |
|
Workflow [PR], commit [5791a70] Summary: ✅ AI ReviewSummaryThis PR hardens Missing context / blind spots
Final Verdict✅ No new inline findings. |
…nt-subquery-loading-dependency" This reverts commit 659cc1c, reversing changes made to f75df10. Conflicts resolved by removing only what ClickHouse#114923 added: the narrow qualification pass in AddDefaultDatabaseVisitor.h is removed together with the parts ClickHouse#114908 later added inside it; InterpreterCreateQuery.cpp keeps the expansion bound of ClickHouse#122362 on the neighbouring call; the string overload of qualifyDictionaryNameWithDatabase in ExternalDictionariesLoader is kept, because the dictionary usage record of ClickHouse#121567 is built on it. 04908_constraint_subquery_loading_dependency.sh (edited by ClickHouse#124408) is deleted with the rest of the test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Related: #116222
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 test (arm_release)on #116222 failed withCannot start clickhouse-server:Failing job: https://github.com/ClickHouse/ClickHouse/actions/runs/37537578074/job/112627772704
(report)
The table is a fuzzer clone of
t_constraint_dep_userfrom this test. The stress profile setsast_fuzzer_any_query(tests/docker_scripts/stress_tests.lib:211), so the server-side AST fuzzer replaysthis file's DDL too, and a replayed
CREATEcan read theCHECKsource throughremote().CREATEacceptsit, but the subquery cannot be analysed while the table is loaded at startup. Stress runs this test in the
shared database
test_7, which is never dropped, so the restart loads the clone and fails.This pins
ast_fuzzer_any_query = 0for every client call of the file, the remedy of #121952 and #123423for 05234 and 05292. Its
SELECTs are still fuzzed.Validation on a master debug build with the stress fuzzer profile: 50 runs before the change replayed 4955
DDL statements on the test's objects, 51 of them a
CREATEwith a table function in theCHECK. 50 runsafter it replayed 0 DDL and 1237
SELECTs, all OK. Creating the clone from the CI log and restarting withasync_load_databases = falsefails with the same error. 50/50 randomized runs pass.The
CREATE/load asymmetry itself belongs to #96886.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/124408]
Version info
26.10.1.1835-master(included in26.10and later)