Skip to content

Do not rebuild a parameterized identifier as a resolved table name - #112704

Merged
PedroTadim merged 5 commits into
ClickHouse:masterfrom
groeneai:fix-create-view-param-identifier-in-body
Aug 1, 2026
Merged

PedroTadim merged 5 commits into
ClickHouse:masterfrom
groeneai:fix-create-view-param-identifier-in-body

Conversation

@groeneai

Copy link
Copy Markdown
Collaborator

Related: #105799

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fixes a logical error and a wrong dependency record when an ordinary VIEW body references a table or dictionary through a query parameter, as in CREATE VIEW v AS SELECT x FROM {db:Identifier}.t. Such a view no longer records a referential dependency on a same-named table of the current database, so unrelated tables can be dropped again.

Description

An ordinary view keeps the query-parameter placeholders of its SELECT body unsubstituted: they are its parameterizable interface, resolved at call time. Such a part is stored as an empty string in name_parts while its expression lives in children, and the compound ASTIdentifier constructor supports that only while the parameters travel with the parts.

ASTIdentifier::createTable rebuilt the node from name_parts alone and dropped the parameters, so such an identifier re-entered that constructor with an empty part and no parameters, took the branch requiring every part to be non-empty, and tripped chassert(!part.empty()). It now returns nullptr, the function's documented "not a table" answer and already its result for every other arity it cannot represent. All ten callers handle nullptr with the fallback they use for an unresolvable name. AddDefaultDatabaseVisitor reaches the same invariant without going through createTable, both for a bare one-part table name and when qualifying a dictGet dictionary name, so a parameterized name is skipped in both places.

Beyond the assertion, the old rebuild yielded an identifier whose database part degraded to the empty string, so the dependency scanner substituted the current database and recorded a referential dependency on a table the view may never read. On 26.7 that makes DROP TABLE of an unrelated table fail with HAVE_DEPENDENT_OBJECTS while the database the parameter names stays unguarded. Since the target is only knowable at call time, no dependency is the sound answer. A view over a resolvable name keeps its dependency, pinned both ways by the new tests.

That placeholder is also valid metadata a release build writes, and the same rebuild runs from TablesLoader::buildDependencyGraph, so a debug or sanitizer build could not start against such a data directory: even SELECT 1 aborted. The new stateless test aborts a pre-fix server and passes on a fixed one.

groeneai and others added 4 commits July 29, 2026 23:21
An ordinary view keeps the query-parameter placeholders of its SELECT body
unsubstituted: they are the view's parameterizable interface, resolved when the
view is called. A placeholder part is stored as an empty string in `name_parts`
while its expression lives in `children`, and the compound `ASTIdentifier` ctor
supports that only while the parameters travel with the parts.

`ASTIdentifier::createTable` rebuilt the node from `name_parts` alone, so a
parameterized identifier re-entered that ctor with an empty part and no
parameters, took the branch that requires every part to be non-empty, and
tripped `chassert(!part.empty())`. Make it return `nullptr` instead, which is
the function's documented "not a table" answer and what it already returned for
every other arity it cannot represent. All ten callers already handle `nullptr`
with the same fallback they use for an unresolvable name.

`AddDefaultDatabaseVisitor` reaches the same invariant by a second route: it
qualifies a `dictGet` dictionary name through `identifier->name()` and a fresh
`ASTIdentifier`, without going through `createTable`. Skip a parameterized name
there too, next to the existing `compound()` skip.

Beyond the assertion, the old rebuild produced an identifier whose database part
degraded to the empty string, so the dependency scanner substituted the current
database and recorded a referential dependency on a table the view may never
read. A release build therefore refused to drop that unrelated table with
HAVE_DEPENDENT_OBJECTS while leaving the database the parameter actually names
unguarded. The target is only knowable at call time, so recording no dependency
is the sound answer; that fabricated edge disappears.

The stored placeholder is valid metadata a release build writes, so a debug or
sanitizer build could not even start against such a data directory: the same
rebuild runs from TablesLoader::buildDependencyGraph during table loading.

Co-Authored-By: Claude Fable 5 <[email protected]>
Review round 2 found a fourth producer of the same `chassert(!part.empty())`
that neither earlier hunk covered, and it is reachable.

`AddDefaultDatabaseVisitor::visit(const ASTTableIdentifier &)` rebuilds a
one-part name through `name` and the constructor rather than `createTable`,
so it drops `name_params` the same way. A bare parameterized table reference
normally never gets that far: `ApplyWithSubqueryVisitor` calls `getTableId` one
statement earlier, and the resulting `StorageID` constructor calls
`assertNotEmpty`, which throws `UNKNOWN_TABLE` for an empty name. That gate has
an exemption: `StorageID::empty` is `table_name.empty() && !hasUUID()`, so an
explicit non-Nil `UUID '...'` clause passes it, and the second check needs a
non-empty database name that a one-part `getTableId` does not produce either.
The same parser path accepts that clause on the same shape, parts first and the
optional clause after, so the name reaches the rebuild one statement later.

Measured on a pre-fix sanitizer build, three such shapes abort with
`!part.empty()` at that site, while the same statements with an all-zero UUID,
which parses to `Nil`, keep returning `UNKNOWN_TABLE` on both builds. That
control pins the UUID value rather than the presence of the clause as the
discriminating condition. Removing only the new early-out reddens exactly those
three shapes and leaves the two previously fixed mechanisms green.

The new cases live in their own test file because they need `no-debug`: the
formatter drops an explicit `UUID` clause on a table reference, so the
format-parse-format check in `executeQueryImpl`, which is compiled only when
`NDEBUG` is not defined, raises `Inconsistent AST formatting` first. That is a
separate pre-existing defect, reproducible with no query parameter at all.
Sanitizer builds define `NDEBUG` yet still enable `chassert` and report
`BUILD_TYPE` as `RelWithDebInfo`, so they run the file and keep the assertion
covered, and the sibling test still carries every case a debug build can run.

Also backtick the literal names in the comments touched by this change.
The `04655` stateless test needed an explicit `UUID '...'` clause on a table
reference to reach the `AddDefaultDatabaseVisitor` rebuild site: without the
clause `StorageID::assertNotEmpty` rejects the empty name first, and
`StorageID::empty` exempts a non-Nil UUID. Any statement carrying that clause
aborts a debug binary before execution for an unrelated pre-existing reason -
the formatter never emits the clause while `ASTTableIdentifier::updateTreeHashImpl`
hashes it, so the format-parse-format check in `executeQueryImpl` raises
`Inconsistent AST formatting`.

The `no-debug` tag that dodged this does not hold on Stress jobs: the whole
`no-{build_flag}` skip loop in `tests/clickhouse-test` is disabled under
`--stress-tests`, which `stress.py` passes for every thread, and both
`Stress test (amd_debug)` and `(arm_debug)` exist. There the test would kill
the server, and a `SERVER_DIED` result raises `StopTesting`, terminating the
whole run rather than failing one test. `no-stress` cannot be used: it is
rejected outright because stress tests must be able to run every test.

Replace it with a unit test that parses the statement and runs the visitor
directly, which never enters the format check. This is the carve-out of the
"prefer SQL tests" rule: the behaviour is not observable from SQL on the build
type where the assertion is live. The guard itself is unchanged and stays
load-bearing - reverting only it makes the new test abort at the same
`!part.empty()` assertion, while the ordinary-name control keeps passing.

The formatter defect is tracked separately; it reproduces with no query
parameters at all.
The comment above the parameterized-name test said the behaviour is "not
observable from SQL on the build type where the assertion is live". That is
wrong for sanitizer builds, which are such a build type: `chassert` is live
whenever `DEBUG_OR_SANITIZER_BUILD` is defined, and `base/base/sanitizer_defs.h`
defines it when any of `ADDRESS_SANITIZER`, `THREAD_SANITIZER`,
`MEMORY_SANITIZER` or `UNDEFINED_BEHAVIOR_SANITIZER` is set, even with `NDEBUG`
present. The format-parse-format check that makes such a statement abort early
is guarded by a plain `#ifndef NDEBUG` in `executeQueryImpl` instead, and
sanitizer builds do define `NDEBUG`. So on a sanitizer build the formatter check
is compiled out while the assertion stays, and the abort is reachable from SQL
there. The comment now says that, which is what the earlier commit of this
branch already stated.

The reason the coverage is a unit test rather than a stateless test is
unchanged, and the rationale moves here from the code. Reaching the
`AddDefaultDatabaseVisitor` rebuild site needs an explicit `UUID '...'` clause
on the table reference, because `StorageID::assertNotEmpty` throws
`UNKNOWN_TABLE` for an empty name and `StorageID::empty` is
`table_name.empty() && !hasUUID()`, so a non-Nil UUID passes it. On a debug
binary any statement carrying that clause hits a separate pre-existing formatter
defect first: the formatter never emits the clause while
`ASTTableIdentifier::updateTreeHashImpl` hashes it, so the format-parse-format
check raises `Inconsistent AST formatting`. The `04655` stateless test that
dodged this with `no-debug` could not stay, because the whole `no-{build_flag}`
skip loop in `tests/clickhouse-test` is disabled under `--stress-tests`, which
`stress.py` passes for every thread, and `Stress test (amd_debug)` exists. There
the test would kill the server, and a `SERVER_DIED` result raises `StopTesting`,
terminating the whole run rather than failing one test. `no-stress` is rejected
outright. The unit test parses the statement and runs the visitor directly, so
it never enters the format check, and it ships in `unit_tests_dbms`, which runs
as `Unit tests (asan_ubsan / tsan / msan)`, exactly the build types where the
assertion is live.

Comment text only. The guard, both tests, and the stateless test are unchanged.
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review (round 5): 0 source blockers, 0 source majors

Independent cold review plus an adversarial second-model gate, adjudicated against the
recorded evidence. Round 5; 5 gate rounds, 4 implementation rounds. The final gate round
returned zero findings.

Round 5 changed comment text only. The comment-stripped md5 of the one touched file is
identical across rounds 4 and 5, and the other five files in the diff are byte-identical by
per-file md5.

# Severity Finding Verdict Resolution
💡 nit This change shares its test-number prefix with several other pending changes of mine DISAGREE (measured) Merging with one of them is clean (git merge-tree exits 0) and the merged tree keeps all four files, so neither test is overwritten and no coverage is lost. The number check only reports gaps of 100 or more and never inspects collisions, and master already carries three unrelated tests under this prefix. Renaming a shipped test is a contract change, not a merge fix.
💡 nit Test-runner byproducts were left in the working tree DISAGREE (harness artifact) .gitignore covers both suffixes, so they are absent from git status and cannot be staged or published.

Earlier rounds, for continuity: round 4 corrected the description to name both non-createTable
rebuild routes the diff guards, and corrected a unit-test comment that had claimed the behaviour
is not observable from SQL on any build where the assertion is live. That claim was false for
sanitizer builds, which define NDEBUG yet still enable chassert; the comment now says so.
Two earlier blockers about a UUID-carrier stateless test were resolved by removing that carrier
and moving its coverage to a unit test, so no shipped test carries a UUID clause, a no-debug
tag, or an analyzer setting.

Verified independently this round, and deliberately not flagged:

  • All ten createTable call sites were re-enumerated at repository scope and read in full. Each
    already handles nullptr with the fallback it uses for an unresolvable name, so the change
    widens an existing return value rather than introducing a new state. The three table-function
    sites additionally fall through to their string-literal argument path, so the new nullptr
    cannot silently resolve to a different table.
  • The other places that rebuild an identifier from its own parts were checked as candidate
    carriers rather than assumed safe. IdentifierSemantic::uncover is reachable only for a
    covered column alias, whose name is set through a path that already requires a non-empty
    name; JoinToSubqueryTransformVisitor builds parts from resolved names; and the
    materialized-view description path cannot see a placeholder, because a materialized body is
    substituted at create time. That asymmetry is itself pinned by the test.
  • Every factual claim the new comment makes was verified from source: the StorageID emptiness
    rule that exempts a non-Nil UUID, the two independent macros behind a live chassert and the
    format-parse-format check, and the test runner ignoring build-flag exclusion tags under
    stress.
  • Test liveness. A pre-fix run of the shipped stateless test aborts the server at exactly the
    guarded site, with the dependency visitor rebuilding the identifier in the stack, so the test
    reddens on the mechanism rather than on some unrelated abort. The unit test asserts its five
    premises before acting, so it cannot pass vacuously, and it is the only cover for the one
    route SQL cannot reach. The stateless test pins the dependency behaviour in both directions,
    so an over-broad fix that stopped recording dependencies would fail it.
  • The description was re-measured against its concision budget, and its countable claims were
    re-derived rather than inherited, including the number of callers and the loader path that
    runs the same rebuild at startup.

Session id: cron:clickhouse-review-slot-48:20260731-033800

@groeneai

groeneai commented Jul 31, 2026 •

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. clickhouse local --param_P=d1 over CREATE DATABASE d1; CREATE TABLE d1.src (x String) ENGINE = MergeTree ORDER BY x; CREATE VIEW d1.v AS SELECT x FROM {P:Identifier}.src; returns rc=134 with Logical error: '!part.empty()'. Eight distinct shapes, every one rc=134 on every run, not a rate. The abort writes nothing to stdout or stderr, so the message comes from --logger.level=trace --logger.log and a SELECT 1+1 control runs first.
b Root cause explained? Yes. An empty name_parts entry is the sanctioned representation of a query-parameter part, with its expression in children; the compound ASTIdentifier ctor accepts that only in its name_params-non-empty branch (ASTIdentifier.cpp:34-44), while the other branch asserts every part non-empty (:46-49). createTable (:170-175) rebuilt from name_parts alone, dropping the params, so the node re-entered the ctor with an empty part and no params and tripped chassert(!part.empty()). The placeholder is still present because isParameterizedView() is is_ordinary_view && select->hasQueryParameters() and ReplaceQueryParameterVisitor deliberately skips the SELECT body.
c Fix matches root cause? Yes. The lossy primitive refuses to build what it cannot represent, rather than guarding the assert or the abort site. nullptr is createTable's documented "not a table" return and already its answer for every arity it cannot represent. The alternative of threading the params through was rejected on measurement: consumers immediately call getDatabaseName()/shortName(), which return the raw empty parts, so DDLDependencyVisitor.cpp:255-259 would substitute the current database, turning an assertion into silent wrong metadata.
d Test intent preserved / new tests added? Yes. New 04654_create_view_param_db_in_body with 12 assertion rows, 2 of them serverError controls, plus 2 new unit tests in src/Interpreters/tests/gtest_add_default_database_visitor.cpp covering the third guard's carrier and an ordinary-name control. No existing test weakened, removed or retagged. Two rows exist specifically so an over-broad guard reddens the test: a literal-database view must still refuse DROP of its source, and a MATERIALIZED view's stored body must still be substituted while an ordinary view's keeps its placeholder. The third guard's carrier is covered by a unit test rather than SQL because reaching it needs an explicit UUID '...' clause on a table reference, and a separate pre-existing formatter defect aborts any statement carrying that clause on a debug binary at parse time, so no SQL spelling can cover it there. The unit test parses the statement and runs the visitor directly, which never enters that check, so the carrier is covered on every build type.
e Both directions demonstrated? Yes, on Build-ID-verified binaries. Pre-fix 74a068f2: 8/8 carriers rc=134. Both hunks 35ad6e21: 8/8 rc=0, 4 controls unchanged. Hunk 1 alone 2293a01d: the dictGet carrier still rc=134, which is what proves hunk 2 load-bearing. Two mutations with predicted failing sets: reverting hunk 1 (09b2aa87) reddens the createTable carriers, reverting hunk 2 reddens the dictGet carrier alone; restoring both relinks bit-identically to 35ad6e21. The new test aborts a pre-fix server (stack ASTIdentifier.cpp:48 <- :199 <- :173 <- DDLDependencyVisitor.cpp:247) and passes on the fixed one.
f Fix is general across code paths? Yes. Four producers of this assert audited and all four fixed, three mechanisms: DDLDependencyVisitor.cpp:247 and AddDefaultDatabaseVisitor.h:244 go through createTable; AddDefaultDatabaseVisitor.h:219 calls the ctor directly after identifier->name(); AddDefaultDatabaseVisitor.h:183 is the same name()-plus-ctor route on a bare one-part name and needed its own skip. That fourth site is guarded because it is reachable, not defensively: assertNotEmpty exempts a non-Nil UUID (StorageID::empty is table_name.empty() && !hasUUID(), StorageID.h:58-61), so an explicit UUID '...' clause on the same shape passes the ApplyWithSubqueryVisitor getTableId gate at InterpreterCreateQuery.cpp:1845 and reaches the rebuild one line later. Measured rc=134 !part.empty() at :183 on the pre-fix binary for three such cells and rc=0 on the fixed one, with an all-zero-uuid control staying rc=60 on both, which pins the uuid value rather than the clause as the axis. Mutation M4 (remove only that guard) reddens only the new carrier and leaves the other two mechanisms green; re-run at unit level, unit_tests_dbms 0bc380a2 passes both new tests while the guard-removed build d83843ec aborts with Logical error: '!part.empty()' at AddDefaultDatabaseVisitor.h:183 and the ordinary-name control still passes, and restoring the guard relinks bit-identically. A later comment-only edit to that test file relinked it to e4ab7028, the shipping id, which passes both tests; its executable content is unchanged, verified by the comment-stripped source md5 being identical across the two commits. The visitor entry points that lack the preceding gate (SelectQueryDescription.cpp:50, StorageWindowView.cpp:398) substitute the body at create time instead, verified via position(create_table_query, '{T') = 0. Sibling reconstruction helpers audited: getTable() (:223-241) and getDatabase() (:243-252) already forward children[...]->clone() for an empty part and are the in-file precedent; restoreTable() only prepends semantic->table; resetTable() takes literal names. No other helper drops params. Fixed at the shared primitive, not at one caller.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes. The guard loops over all parts rather than special-casing name_parts[0], so both reachable arities are covered: 2-part (:173/:198) and 1-part (:172/:184). Carriers span FROM, a subquery, a JOIN right side, a UNION ALL branch, an explicit column list, RENAME, IN and dictGet. Controls: literal database, plain SELECT through the parameter, MATERIALIZED view, CREATE TABLE ... AS SELECT, and a parameter in the table position (stays Code: 60, becomes neither an abort nor a false success).
h Backward compatible? (maintainer-approved exception only) Yes. No setting, no default change, no serialization or format change, no new error code, no SettingsChangesHistory.cpp entry, no ABI or protocol change. Views already persisted with a placeholder keep working in release and stop aborting debug builds. One deliberate, disclosed behaviour change stated in the PR body: the fabricated referential edge disappears. Measured on release 26.7.2 versus this build with check_referential_table_dependencies = 1 -- a literal-database view still refuses the DROP (Code: 630, unchanged), the same-named table of the current database now drops (was Code: 630), and the database the parameter actually names dropped freely in both. Nothing can depend on an edge that guards the wrong table while leaving the real one open.
i Invariants and contracts preserved? Yes. nullptr is the documented "not a table" contract (ASTIdentifier.h:55, comment extended in this diff) and was already returned for every arity other than 1 and 2. All ten call sites were read and verified nullptr-safe; each either early-returns or gates on the pointer: DDLDependencyVisitor.cpp:247/:470, DDLLoadingDependencyVisitor.cpp:208, DDLRenamingVisitor.cpp:119/:225, AddDefaultDatabaseVisitor.h:244, MarkTableIdentifiersVisitor.cpp:27, StoragePrometheusQuery.cpp:75, StorageTimeSeriesSelector.cpp:93, TableFunctionTimeSeries.cpp:45. The two rewriting consumers previously spliced a params-dropped node into the AST, so nullptr also stops a silent parameter erasure. The second hunk is a continue in a loop that carries no state across iterations. The third hunk is the same shape of early-out at :183, added once the assertNotEmpty uuid exemption showed that site is reachable; it is placed beside the existing compound() return, before any use of the name, so it cannot reorder or skip an existing check. With all four producers guarded, the invariant that no rebuild ever sees an empty part now holds by construction rather than by a reachability argument, and mutation M4 shows it fails at exactly that site without the guard.

Additional validation: 50 randomized runs of 04654 with 4-way self-parallelism on the shipping ASAN binary, 50 OK / 0 FAIL, so it needs neither a no-parallel nor a no-debug tag; it is the only stateless test in this change. The unit tests run in unit_tests_dbms on every build type. Targeted A/B sweep of the 49 tests matching param / view / dependency / dict_get / identifier, same selection and config on both binaries, each server's buildId() asserted equal to its ELF Build ID, compared by set difference rather than by counts: 49 tests ran in both arms, zero newly broken and zero improved, and the three shared failures are byte-identical bare-sandbox gaps (a missing shard macro, a missing interserver parameter, and one timeout with no relation to this change). 04654 is deliberately outside that comparable set because on the baseline binary it kills the server, which is the both-directions proof itself: the baseline log records Logical error: '!part.empty()' on CREATE VIEW v_from AS SELECT v FROM {pdb:Identifier}.src under that test's own log comment. 04276_create_view_param_db_with_param_select stays green in both arms. Startup carrier asserted end to end: a release binary persists the view, a pre-fix debug binary then aborts on SELECT 1 inside TablesLoader::buildDependencyGraph, and the fixed binary returns 1 and can query the view. The formatter defect that keeps the third carrier out of SQL is filed separately; it reproduces with no query parameter at all, since ASTTableIdentifier::updateTreeHashImpl hashes uuid while ASTTableIdentifier does not override the identifier formatter, which never emits the clause.

Session id: cron:clickhouse-review-slot-48:20260731-033800

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @alexey-milovidov @SmitaRKulkarni, could you review this? ASTIdentifier::createTable rebuilt a parameterized identifier from name_parts alone and dropped the query parameters, so an ordinary view body such as FROM {db:Identifier}.t re-entered the constructor with an empty part and hit a logical error. The degraded database part also made the dependency scanner record a referential edge on a same-named table of the current database, so an unrelated table could not be dropped.

@PedroTadim PedroTadim self-assigned this Jul 31, 2026
@PedroTadim PedroTadim added the can be tested Allows running workflows for external contributors label Jul 31, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [b4db0d4]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_tsan, s3 storage, parallel, 2/3) FAIL
04611_join_runtime_filters_index_analysis_skip_index FAIL cidb, issue ISSUE EXISTS
Scraping system tables FAIL cidb, issue ISSUE EXISTS
Fast test (arm_darwin) ERROR IGNORED

AI Review

Summary

This PR fixes the ASTIdentifier::createTable rebuild bug for parameterized identifiers stored in ordinary VIEW bodies, and the new stateless test does a good job covering the dependency-scanning and startup regressions around FROM, IN, and dictGet. I found one remaining compatibility hole: the legacy analyzer path still appears unable to type-check placeholder-backed dictGet/joinGet names after createTable starts returning nullptr.

Findings

⚠️ Majors

  • [tests/queries/0_stateless/04654_create_view_param_db_in_body.sql:51] The new regression test proves the default-analyzer path, but it does not cover the legacy analyzer that is still wired into CI. Returning nullptr for parameterized identifiers means MarkTableIdentifiersVisitor no longer upgrades {pdict:Identifier} / {pjoin:Identifier} into an ASTTableIdentifier, and the old ActionsVisitor still only handles ASTTableIdentifier or a direct ASTQueryParameter for dictGet / joinGet argument 0. As a result, CREATE VIEW ... AS SELECT dictGet({pdict:Identifier}, 'val', k) ... with allow_experimental_analyzer = 0 should still fail sample-block analysis with UNKNOWN_IDENTIFIER.
    Suggested fix: teach the old-analyzer path to treat placeholder-backed ASTIdentifier the same way it already treats direct ASTQueryParameter, or preserve an ASTTableIdentifier-like placeholder for dictGet / joinGet.
Tests

⚠️ Add a focused stateless regression that runs the new dictGet/joinGet parameterized-view case with allow_experimental_analyzer = 0; the current test only proves the default analyzer path.

Final Verdict

Changes requested. The DDL-time assertion and dependency bug look fixed, but the legacy analyzer still appears to reject the dictGet / joinGet placeholder form that this PR is trying to preserve.

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Jul 31, 2026
@PedroTadim
PedroTadim enabled auto-merge July 31, 2026 14:36
@clickhouse-gh

clickhouse-gh Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 86.50% 86.50% +0.00%
Functions 91.90% 91.90% +0.00%
Branches 78.70% 78.70% +0.00%

Changed lines: Changed C/C++ lines covered: 16/17 (94.12%) · Uncovered code

Full report · Diff report

@groeneai

groeneai commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - b4db0d4

Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Stateless tests (amd_tsan, s3 storage, parallel, 2/3) / 04611_join_runtime_filters_index_analysis_skip_index randomized setting join_runtime_filter_min_probe_rows; runner reports 14/14 failed with the same settings and 17/17 passed without them fixing PR #111691 (external, merged) - it pins that setting in this test, and this head predates it (min_probe_rows occurrences: 0 here, 1 on master), so merging master clears it
Stateless tests (amd_tsan, s3 storage, parallel, 2/3) / Scraping system tables collateral of the row above: a TSan thread-leak warning from clickhouse-local while dumping query_log on the same job fixing PR #111691 (external, merged) - same job, same cause
Fast test (arm_darwin) Darwin pthread_rwlock wakeup loss under the profiler signal storm (Apple FB24027930) fixing PR #112267 (external, merged) - it adds base/darwin-compatibility, absent at this head (404) and present on master, and this head is 953 commits behind that merge

Nothing here is caused by this PR's own diff: the diff is 5 files (src/Parsers/ASTIdentifier.{h,cpp}, src/Interpreters/AddDefaultDatabaseVisitor.h and the new 04654_create_view_param_db_in_body pair) and touches neither 04611 nor anything Darwin-specific.

Session id: cron:our-pr-ci-monitor:20260801-023000

@PedroTadim
PedroTadim added this pull request to the merge queue Aug 1, 2026
Merged via the queue into ClickHouse:master with commit 3f837bd Aug 1, 2026
348 of 353 checks passed
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-bugfix Pull request with bugfix, not backported by default pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants