Repository navigation
Reject duplicate names in CTE and table expression column alias lists - #114505
Conversation
|
Workflow [PR], commit [ad892cb] Summary: ✅
AI ReviewSummaryThis PR moves duplicate-alias validation into the shared projection-alias override path used by CTE alias lists and table-expression column alias lists, and adds focused stateless coverage for the previously silent column-collapse cases. I did not find a remaining correctness, safety, or evidence gap in the current patch; the change matches the promised behavior and the PR CI is all green. Final Verdict
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 17/17 (100.00%) · Uncovered code |
|
📊 Cloud Performance Report ✅ AI verdict: This PR is a pure refactor: it extracts a shared helper for parsing CTE/table-expression column-alias lists (the clickbenchFlagged queries (3 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_officialFlagged queries (2 of 22)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. Debug info
|
…ckHouse#114505 The same duplicate-name check for `WITH t(a, a)` and `AS t(a, a)` column alias lists landed on master in ClickHouse#114505 at both `QueryTreeBuilder` sites, so this branch keeps master's version instead of its own helper. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixes a bug where the query gave incorrect result on duplicated column alias name in CTE and table expression (must be rejected). Closes #114427
Version info
26.10.1.1886-master(included in26.10and later)