Repository navigation
Add test: dictGet consumer of the literals map untested on the UPDATE expansion path - #121200
Conversation
Pre-PR validation: 6/6 ✅a) Deterministic repro? ✅ b) Root cause explained? ✅ c) Fix matches root cause? ✅ d) Test intent preserved? / New tests added? ✅ e) Both directions demonstrated? ✅ f) Fix is general, not a narrow patch? ✅ |
|
I looked at this as the author of #120026. The gap is real and the oracle discriminates, so this is worth having. Everything below is measured on master The gap. The only existing test that substitutes a The oracle. I broke the branch three ways and re-ran your test, confirming each binary by build id:
Each row is individually diagnostic, which is what a single-direction coverage test needs. What it adds, precisely. All three mutations also redden Hygiene. Parallel-safe: the five objects are unqualified names in the per-test database and none of the state is server-wide. No randomization lever either: neither I would not extend it either: the one remaining cell, the same rewrite reached through the predicate call at One thing I cannot help with: I do not add labels on another author's PR, so |
|
Workflow [PR], commit [37258b4] Summary: ✅ AI ReviewSummaryThis test-only PR adds a focused stateless regression for the Final Verdict✅ No findings. The new test is scoped to a real uncovered branch and the assertions distinguish the intended alias-visible vs alias-hidden outcomes. |
|
CI failure in |
|
Yes, merge master. That will clear it. The red is A retrigger on its own will not do it: attempt 2 of the run on |
|
Pushed |
…cally Conflict in `AzureObjectStorage::readObject`: master (#121200 area) turned `connection_params` into a `MultiVersion` and dropped the `auth_method_` constructor parameter; this branch passes `object.etag` as the last `ReadBufferFromAzureBlobStorage` argument. Kept both, and removed the `AuthMethod` argument from the two `AzureObjectStorage` constructions in `gtest_azure_read_buffer.cpp`.
Test-only PR. Review: are the gaps real, is the test right.
Adds test coverage for 1 untested code path, found during automated review of PR #120026.
That PR: (1)
ApplyWithSubqueryVisitornow clears the inheritedliteralsmap (not justsubqueries) when a descendant select disablesenable_global_with_statement, and adds a propagate-onlyexported_literalsmap that re-exposes aliases declared withenable_scopes_for_with_statement = 0to any …1.
dictGetconsumer of theliteralsmap untested on theUPDATEexpansion pathsrc/Interpreters/ApplyWithSubqueryVisitor.cpp:198,src/Interpreters/ApplyWithSubqueryVisitor.cpp:84Risk:
InterpreterUpdateQuery.cpp:198callsApplyWithSubqueryVisitor::visit(assignments, getContext());visit(ASTSelectQuery&)applies the subquery's ownSETTINGSand clearsliteralsatApplyWithSubqueryVisitor.cpp:84, then re-addsexported_literalsat:86-90. Two sites read that map: the …Unique vs PR tests:
05189_update_cte_out_of_scope_database.sqldrives all eight new expression-alias arms through one consumer ofData::literals, the right argument ofINatApplyWithSubqueryVisitor.cpp:178(toUInt8(7 IN src)). This test drives the same three-way settings matrix through the only other …Try it on ClickHouse Fiddle
cc @groeneai (author of #120026), @alexey-milovidov (merged/approved #120026) — could you take a look, and add the
can be testedlabel if this looks good?Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes
Workflow [PR]
Sync PR [sync-upstream/pr/121200]
Version info
26.10.1.809-master(included in26.10and later)