Skip to content

Stop a stored timeSeriesSelector() or prometheusQuery() definition from making the server unstartable - #119662

Open
groeneai wants to merge 10 commits into
ClickHouse:masterfrom
groeneai:groeneai/timeseries-selector-defer-table-resolution
Open

groeneai wants to merge 10 commits into
ClickHouse:masterfrom
groeneai:groeneai/timeseries-selector-defer-table-resolution

Conversation

@groeneai

@groeneai groeneai commented Sep 12, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #116629

Changelog category (leave one):

  • Experimental Feature

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

A table created as AS timeSeriesSelector(...), AS prometheusQuery(...) or AS prometheusQueryRange(...) no longer stops the server from starting once its source TimeSeries table is dropped or renamed. These table functions now look the source up when such a table is read, not while metadata loading replays its definition, so the table attaches and reports the missing source on read.

Description

CREATE TABLE sel AS timeSeriesSelector(ts, 'up', 0, 9999999999, 'samples'); DROP TABLE ts; and a restart is enough: with async_load_databases = 0 the server never starts again; at the default it comes up, but that table and DROP TABLE on it raise Code: 722 for good. An unqualified source name in a non-default database does the same with nothing dropped.

This is the requested investigation: the eager lookup below is what #116629 was reverted over, when its test left such definitions behind for a stress restart to replay. The lookup predates that PR and is on 26.3-26.10.

Both storages resolve the source at the end of getConfiguration(), which their table function calls from parseArguments(), so the lookup runs before execute() can hand back the lazy StorageTableFunctionProxy that carries the structure ITableFunction.h caches in metadata "to avoid failures on server startup". So getConfiguration() splits into parseArgumentsOnly() (no catalog) and resolveConfiguration(), called from getActualTableStructure() and executeImpl(), as loop() and mergeTreeIndex() already do. Both Configuration structs, both constructors and both readImpl() are untouched. The source name is canonicalized to database.table in the stored argument.

One deliberate consequence: an inferred-structure CREATE still requires the source, while an explicit column list defers it, and prometheusQuery()'s PromQL text, to the first read. canBeUsedToCreateTable() { return false; } would be cheaper but only blocks new definitions.

No access-rights code is touched. The timeSeriesSamples() family resolves in parseArguments() too; #119786 refuses new tables over it and this PR does not touch it. One residual stays: a definition already on disk whose source is unqualified still binds against the loader's current database, because replay shares one loader context across databases.

Base vs fixed on the same data directory

Validated by this A/B, a mutation ladder per arm, and 50x50 randomized runs of the new test.

# master 474f3e32, async_load_databases = 0
<Error> Application: Caught exception while loading metadata: Code: 722. DB::Exception:
  Waited job failed: Code: 695. DB::Exception: Load job 'load table d1.sel' failed: Code: 60.
  DB::Exception: Table d1.ts does not exist: Cannot attach table `d1`.`sel` from metadata file
  store/8b4/.../sel.sql from query ATTACH TABLE d1.sel UUID '...' (...)
  AS timeSeriesSelector(d1.ts, 'up', 0, 9999999999, 'samples'). (UNKNOWN_TABLE)
-> server never ready

# master 474f3e32, default async_load_databases
SELECT count() FROM d1.sel                         -> Code: 722 ...
SELECT name FROM system.tables WHERE database='d1' -> Code: 722 ...
DROP TABLE d1.sel                                  -> Code: 722 ...
DROP DATABASE d1                                   -> Code: 722 ...

# this PR merged with master 6624a338, same directory, async_load_databases = 0
SERVER_READY
SELECT name FROM system.tables WHERE database='d1' -> pq, sel
SELECT count() FROM d1.sel                         -> Code: 60. Table d1.ts does not exist. (UNKNOWN_TABLE)
DROP TABLE d1.sel; DROP TABLE d1.pq                -> ok

The unqualified-name case, with a decoy default.ts of a different engine present, on the fixed
binary: SHOW CREATE reads AS timeSeriesSelector(mydb.ts, 'up', 0, 9999999999, 'samples') and after a restart
the read binds to mydb.ts, not to the decoy. Dropping the canonicalization makes it bind to the decoy.


Workflow [PR]
Sync PR [sync-upstream/pr/119662]

…ments

A table created as `AS timeSeriesSelector(...)`, `AS prometheusQuery(...)` or
`AS prometheusQueryRange(...)` stores the call as its definition. Metadata loading
replays that definition through `DatabaseOnDisk::createTableFromAST`, which runs
`parseArguments()` before `ITableFunction::execute`. Both storages resolved the
source table at the end of `getConfiguration()`, which their table function calls
from `parseArguments()`, so a source table that had since been dropped or renamed
threw `UNKNOWN_TABLE` from the load job. With `async_load_databases = 0` that takes
the whole server down; at the default the table, its database's row in
`system.tables`, and `DROP TABLE` on it all raise `Code: 722` for good, so the only
repair is editing the metadata file by hand.

`ITableFunction.h` documents the seam that should have absorbed this: the structure
is written to the metadata file "to avoid failures on server startup", and
`ITableFunction::execute` hands back a lazy `StorageTableFunctionProxy` when
`cached_columns` is non-empty and `hasStaticStructure()` is false, which neither of
these table functions overrides. The eager lookup one call earlier was the only
thing defeating it.

Split `getConfiguration()` into `parseArgumentsOnly()`, which reads only what the
arguments determine, and `resolveConfiguration()`, which does the catalog work, and
call the second from `getActualTableStructure()` and `executeImpl()`. Replay now
resolves nothing, and resolution still happens once per materialization. Both
`Configuration` structs, both storage constructors and both `readImpl()` are
untouched, so the post-resolve validations still run on a fully resolved
configuration.

Qualify the source name in the creating context and write `database.table` back into
the argument, so a definition naming a dropped database attaches instead of throwing
`UNKNOWN_DATABASE` during the load. The qualification fills in the database name only
and deliberately does not look the table up, because the loader would wait for that
table's startup job. The write-back matters because `TablesLoader` replays under a
copy of the global context, whose current database is `default`, not the creating
session's: without it an unqualified name binds to the wrong database at every
restart. The node written is a compound `ASTIdentifier`, the node the parser itself
produces for `database.table`; an `ASTTableIdentifier` there is resolved as an
expression by the analyzer and rejected, and its `StorageID` constructor would also
copy the UUID and pin the definition to it.

Definitions already on disk keep their unqualified text and are not rescued by the
write-back; they attach and report the missing source when read, which is the point.
Replays stored `AS timeSeriesSelector(...)` / `AS prometheusQuery(...)` definitions
with `DETACH TABLE` + `ATTACH TABLE`, which is the same `parseArguments()` path
metadata loading takes, and asserts that the objects a definition names do not have
to exist for it to attach: source table dropped, source table renamed, tags target
dropped, source database dropped, and a full definition naming a table that never
existed. Reading such a table must then report the missing object rather than hide
it, and a control arm keeps a definition whose source is intact reading its row.

Two arms guard the other direction, so the deferral cannot silently grow: a `CREATE`
whose structure is inferred from the function must still reject a missing source,
while the explicit-column-list form, which never infers the structure, succeeds and
reports the source on first read. A last arm keeps the time bounds converted, which
is what re-arms the constructor's instant-selector and inverted-range checks.

Three arms cover what the other paths only reach at runtime. One replays a definition
while a different database is current, with a same-named decoy in it, so the stored
name has to carry the database it was created in or the read returns the decoy's rows
instead of an error. One persists and replays `prometheusQueryRange()` as well, whose
`over_range` branch is converted separately, with a control that counts evaluation
timestamps so a wrong step changes it. The last creates a definition naming the table
being created, which an explicit column list makes possible, and asserts it attaches
and reports `UNEXPECTED_TABLE_ENGINE` when read.

A further arm replays a whole database rather than single tables. `ATTACH DATABASE`
runs the `TablesLoader` that `InterpreterCreateQuery` shares with server startup, so
it is the one shape a stateless test can use to replay definitions the way a restart
does: the replay context is a copy of the global context, whose current database is
not the session's, and every table's load job is wired to that table's own startup
job. The arm puts a bound, a dangling and a self-referential definition into one
auxiliary database, plus one holding a PromQL query the grammar rejects, so a single
`ATTACH DATABASE` covers all four. The bound ones must return the source's row count,
which is only possible if the stored name carries the database it was created in, and
the rest must report their own failure on the first read instead of at load time.
Each
count is labelled, because two bare counts are indistinguishable in a diff and the
two
table functions carry separate copies of the qualification.

What that arm still cannot reach is the load job's self-wait, and not by accident: a
binary that resolves at parse time also skips the name write-back, so its loader
resolves in the global database and never waits on the half-loaded table. Reaching it
needs a definition written by one binary and replayed by another.

The test drops every table and database it creates. By the end nine of its
definitions
name a source that is gone, and an unmaterializable stored definition is not
something
the rest of the suite should inherit. The drops deliberately omit `SYNC`: a proxy
whose
materialization always throws still holds its table function, and a synchronous drop
waits for that.

Inserts go through `INSERT ... SELECT`: with an inline `VALUES` payload the client
keeps reading stdin for further rows, and stdin under the test runner is an inherited
pipe that never ends.
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-oranjeai PR origin: delegated from the OranjeAI sibling fleet labels Sep 12, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review of this diff: three rounds, each an independent pass of my own plus a
second-model pass (engine: codex), every finding adjudicated against the code. Severity:
❌ blocker / ⚠️ major / 💡 nit. The tree being published drew no findings from either pass.

❌ A self-referential definition could newly have made the server unstartable. With an explicit
column list the CREATE no longer resolves, so CREATE TABLE t (...) AS timeSeriesSelector(t, ...) is
accepted where master rejects it with UNKNOWN_TABLE. Qualifying the argument with
Context::tryResolveStorageID also filled in the table's UUID, which goes through
IDatabase::tryGetTable, whose first step is waitTableStarted(); a startup job depends on its load
job, so for a definition naming its own table AsyncLoader threw out of the load job. Fixed:
parseArgumentsOnly now fills in the database name only (temporary tables aside, since they carry their
own UUID), and the full resolution moved to resolveConfiguration, which runs at materialization.
Measured on one data directory: rejected on master, unstartable on the pre-fix build, and now starts,
with UNEXPECTED_TABLE_ENGINE on the read.

⚠️ The replay path this fix is about had no committed arm. Every arm replayed through
DETACH TABLE / ATTACH TABLE, which runs under a session's context. ATTACH DATABASE builds the same
TablesLoader as server startup, so an arm now loads a whole auxiliary database of stored definitions at
once; on master that load fails with Code: 722 ... Load job 'load table <db>.<t>' failed: Code: 60 ... does not exist, which is this defect on the path it actually occurs on.

⚠️ Three oracles were missing or not attributable. The source-name canonicalization had no live arm:
deleting both write-back call sites left the test green, because every replay ran from the database the
table lives in. It now has an arm that replays from a different current database with a same-named decoy
present, so what it catches is a wrong row count rather than an error. The write-back is duplicated per
table function and the mutation deleted both copies at once, so it is now split per copy with disjoint
reddened sets. prometheusQueryRange was named in the changelog but never persisted or replayed, and its
step conversion had no oracle; count() cannot see the step there, so the oracle is the number of
evaluation timestamps.

⚠️ The test left dangling stored definitions behind, which is the failure mode the revert of #116629
was about. It now drops all 16 tables and all 3 auxiliary databases it creates, asserted empty afterwards.

💡 Noted, not fixed here (also in the description): a definition already on disk whose source is
unqualified still binds against the loader's current database, because metadata replay shares one loader
context across databases. Master dies outright in that scenario, so nothing regresses here, and every
place it could be fixed would change name resolution for every table function replayed from metadata.

💡 The description said this change defers "source and PromQL query alike"; I narrowed that before
publishing. timeSeriesSelector's selector text is still parsed while its arguments are parsed, because
building that tree needs no timestamp scale; only prometheusQuery's query text moves to the first read.

💡 The test's cleanup comment attributes the omitted SYNC to a proxy still holding its table function.
The real constraint is narrower: StorageTableFunctionProxy::drop() forwards only once the nested
storage exists, so the arm above drops such tables synchronously without waiting; what a resolved object
held by the table function would block is a synchronous drop of the source table.

Session id: cron:clickhouse-review-slot-8:20260912-184000

@clickhouse-gh clickhouse-gh Bot closed this Sep 12, 2026
@clickhouse-gh clickhouse-gh Bot reopened this Sep 12, 2026
@clickhouse-gh clickhouse-gh Bot reopened this Sep 12, 2026
@vitlibar vitlibar self-assigned this Sep 12, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes, four, each scripted and firing on every run: CREATE TABLE sel AS timeSeriesSelector(ts, ...) + DROP TABLE ts + restart (server dies with async_load_databases = 0, Code: 722 forever at the default); the same with an unqualified source name inside a non-default database and nothing dropped; a definition naming the table being created, which aborts the loader with a LOGICAL_ERROR; and the new stateless test.
b Root cause explained? Both storages resolve the source table at the end of getConfiguration(), which their table function calls from parseArguments(). DatabaseOnDisk::createTableFromAST replays a stored definition through parseArguments() before ITableFunction::execute, so the catalog lookup happens during metadata loading and never reaches the lazy StorageTableFunctionProxy that ITableFunction.h documents as existing "to avoid failures on server startup".
c Fix matches root cause? Yes: the catalog work moves to the two methods that need it, so replay resolves nothing. Parse time resolves temporary tables only (Context::ResolveExternal) and takes the database name from the context, so it makes no IDatabase call at all - which is what the root cause demands, since any lookup of a table still being loaded waits on that table's own startup job. No widened bound, no swallowed exception, no no-random-* tag, no guard at the failure site. The failure still occurs, at read time, where it is reportable.
d Test intent preserved / new tests added? New .sh + .reference with 14 arms, including a control that must still read a row and a guard that a CREATE whose structure is inferred must still reject a missing source. Every arm has a mutation that reddens it, and each arm added for a blocker finding has a mutation that reddens only it, per copy of the duplicated code: deleting the selector write-back moves the selector arms alone, deleting the Prometheus write-back moves the Prometheus arms alone, doubling the evaluation step moves the prometheusQueryRange control alone, and parsing the stored PromQL query eagerly again moves the invalid-query arm alone. The test also drops every table and database it creates, asserted empty afterwards. No existing test was weakened or needed changing.
e Both directions demonstrated? Yes, on the same data directories: base dies / bricks the database, fixed starts and reports UNKNOWN_TABLE on read only, and DROP TABLE on the broken definition works again. The self-referential definition aborts the server before this change and reports UNEXPECTED_TABLE_ENGINE on read after it. On the real loader path, ATTACH DATABASE over a database of stored definitions fails on master with Code: 722 Waited job failed: Code: 695 Load job 'load table <db>.<t>' failed: Code: 60 ... does not exist and succeeds with the fix. The new test is red on master and green with the fix; the running server's buildId() was asserted equal to the built binary before every verdict.
f Fix is general across code paths? Both carriers in scope fixed in the same shape: timeSeriesSelector() and the prometheusQuery() / prometheusQueryRange() template, with the identical change in both parseArgumentsOnly() and both resolveConfiguration() implementations. StorageAlias was already fixed by #116153. timeSeriesSamples() / timeSeriesTags() / timeSeriesMetrics() share the shape; measured, they brick a restart before and after this change, and are disclosed in the PR body rather than changed here. loop() and mergeTreeIndex() already use this shape.
g Fix generalizes across inputs (params/datatypes/wrappers)? All five source-argument spellings measured (bare identifier, qualified identifier, one string literal, two string literals, currentDatabase() + literal) and byte-identical before and after the last change, both arities of the Prometheus template with prometheusQueryRange() persisted and replayed by a committed arm whose control is step-sensitive, the four ways a definition can be orphaned (table dropped, table renamed, tags target dropped, database dropped), a cross-database replay, a self-referential definition, both replay contexts (a session's, and the table loader's own via ATTACH DATABASE), and a stored PromQL query the grammar rejects, which stays loadable and fails only on the read. Type wrappers do not apply: the change moves a catalog lookup and touches no column type or value.
h Backward compatible? Yes. No setting, no format and no serialization change, so no SettingsChangesHistory.cpp entry. Definitions written by older servers still load, which is the point; they keep their existing text. Newly written definitions carry the source name qualified, a legal equivalent spelling of the same call.
i Invariants and contracts preserved? Both Configuration structs are unchanged and still fully resolved, so both constructors keep their post-resolve validations verbatim (the instant-selector check and the inverted-range check), both pinned by a test arm shown to redden when the time conversion is dropped. The UUID-pinned identity of the source is preserved for the read path: resolveConfiguration() resolves once and stores that identifier, exactly as before, so the second read-time lookup cannot rebind by name after a rename. Neither readImpl() was touched. No memoisation and no member holding a Configuration or a storage pointer, so a lazy proxy cannot keep the source table alive; measured: DROP TABLE ... SYNC on the source completes, and DROP TABLE on a broken definition now succeeds where it used to throw. Resolution count per call is unchanged from master.

Session id: cron:clickhouse-impl-slot-6:20260912-170700

@clickhouse-gh

clickhouse-gh Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [3d51331]

Summary: ✅


AI Review

Summary

The PR defers source resolution for timeSeriesSelector, prometheusQuery, and prometheusQueryRange, allowing persisted definitions to load after their source is dropped or renamed. The regression test covers table and database replay, source qualification, deferred failures, and successful reads. No unresolved findings remain; the earlier source-identity concerns are adequately explained by the existing name-based replay contract.

Missing context / blind spots
  • ⚠️ No local ClickHouse build or server was available, so runtime validation relies on the author's reported A/B runs and committed regression coverage. The current CI functional jobs were still pending; their completion will verify this revision.
Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Sep 12, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @vitlibar @nikitamikhaylov, could you review this? getConfiguration() resolved the source TimeSeries table while parseArguments() ran, so replaying a stored AS timeSeriesSelector(...) definition read the catalog during metadata loading, and a dropped source could then stop the server from starting; the lookup now happens in getActualTableStructure() and executeImpl(), behind the lazy proxy that already exists for this. No access-rights code is touched.

Comment thread src/Storages/StoragePrometheusQuery.cpp Resolved
@clickhouse-gh clickhouse-gh Bot added the comp-promql PromQL / time-series subsystem: TimeSeries storage engine, PromQL parser, PromQL-to-SQL converter... label Sep 12, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 3d51331ef with master ab23bdd4e (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

12 translation units recompiled, 42 s compile time in total, 12 of them have a recent master baseline.

Job report

`parseArgumentsOnly()` fills in the database of the source table and writes the resolved
`database.table` back into the arguments, so a stored definition replays against the
database it was created in. An empty table name cannot be written back: the
single-argument form builds a compound `ASTIdentifier`, whose constructor asserts
`!part.empty()`, so `prometheusQuery('', 'up', 1000)`, `prometheusQueryRange('', ...)` and
`timeSeriesSelector('', ...)` aborted a debug server with `Logical error: '!part.empty()'`.
`AST fuzzer (amd_debug, targeted)` found it on this branch.

Nor is there anything to write back: `StorageID::assertNotEmpty()` rejects a database name
without a table name, so the qualified pair is invalid whichever node carries it. Leaving
such arguments as parsed restores what these functions did before this branch, and matches
what the two-argument form already does: resolution reports `Code: 60`, `UNKNOWN_TABLE`.
Measured on both `enable_analyzer` values.

Arm (l2) covers the three functions. Each of them takes an unfixed debug server down at
the first query of the arm.
@groeneai

Copy link
Copy Markdown
Collaborator Author

AST fuzzer (amd_debug, targeted) aborted the server on the previous head with Logical error: '!part.empty()' for SELECT * FROM prometheusQuery('', 'absent(nonexistent{job="api"})', -2147483647). The cause is mine: the argument write-back added here builds a compound ASTIdentifier out of the resolved database.table, and an empty table name hands it an empty name part.

Fixed in cc477d7: a name that cannot name a table is left as parsed, so resolution reports Code: 60, UNKNOWN_TABLE, as it did before this branch and as the two-argument form already did. Measured for timeSeriesSelector, prometheusQuery and prometheusQueryRange on both enable_analyzer values; arm (l2) of the test covers the three, and each of them takes an unfixed debug server down.

One thing the deferral admits, for the record: with an explicit column list, a definition naming a temporary table as its source is now created instead of rejected, and after the session its stored name resolves like any other unqualified reference. CREATE VIEW v AS SELECT x FROM <temporary table> already behaves that way on master, silent rebinding to a same-named permanent table included, so I have kept these functions consistent with it rather than making them stricter here.

…-selector-defer-table-resolution

# Conflicts:
#	src/Storages/StoragePrometheusQuery.cpp
#	src/Storages/StorageTimeSeriesSelector.cpp
#	src/TableFunctions/TableFunctionTimeSeriesSelector.cpp
Master renamed the outer column of new TimeSeries tables from `time_series` to
`samples`, so the test's inserts failed with `No such column time_series` and
every arm built on them fell through. The reference is unchanged.
Comments only, no code change. They now state only what the code below them
cannot show: why the write-back uses a compound identifier, that a stored
definition is replayed against the loader's current database, and why an empty
or temporary name is left as written. The narration of the split itself moved
out, since the commit that introduced it already explains it.

The temporary-table comment also said such a table cannot appear in a stored
definition, which is not what the code guarantees: its name can be stored as
written, only its resolved id cannot, because that names an internal database.
@clickhouse-gh clickhouse-gh Bot added pr-experimental Experimental Feature and removed pr-bugfix Pull request with bugfix, not backported by default labels Sep 27, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Dear @vitlibar, you haven't been active on this PR for 30 days. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself.

groeneai and others added 3 commits October 29, 2026 12:08
…-selector-defer-table-resolution

# Conflicts:
#	src/Storages/StorageTimeSeriesSelector.cpp
#	src/TableFunctions/TableFunctionTimeSeriesSelector.cpp
…n test

Master made the `return_columns` argument of timeSeriesSelector() mandatory
and no longer allows external target tables for new TimeSeries tables
(version 10 and later). `timestamp_and_value` keeps the columns and rows the
test read before, so the reference is unchanged, and the arm that drops the
tags target pins version 9, the last version with external target tables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
`parseArgumentsOnly()` built the `PrometheusQueryTree` from the selector,
so a selector that cannot be parsed now failed before the lookup of the
TimeSeries table. Master checks the table first. In a build without ANTLR4
every PromQL parse throws `SUPPORT_IS_DISABLED`, so the Fast test of
`05054_timeseries_under_distributed` got 344 instead of the expected
`UNEXPECTED_TABLE_ENGINE` for a Distributed table.

Keep the selector as a string and parse it in `resolveConfiguration()`,
after the lookup, the engine check and the version check, which is where
master parses it. `prometheusQuery()` already keeps its query as a string
until then.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - acf79f2

Every failure below has an owner: a fixing PR (mine 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 (arm_binary, parallel) / Logical error: Trying to deserialize data into Variant column with not global variants order (STID: 6636-4ef9) trunk bug, not from this PR (its diff has no JSON, serialization or MergeTree reader code): a Wide-part read of a JSON(SHARED ...) column through the columns cache decodes a Dynamic path into a Variant column whose variants are not in global order. This STID hit 4 PRs and 1 master run in 30 days #127867 (mine, open)
Stateless tests (arm_binary, parallel) / Server liveness check failed the server abort of the row above, same job #127867 (the owner of the row above)
Mergeable Check, PR praktika rollups of the rows above #127867 (the owner of the rows above)
Sync - CH Inc sync (private, not actionable by me)

CIDB has no other FAIL or ERROR row on this head. After this failure praktika dropped 73 later jobs (Mergeable Check: "Dropped: 73"), so they have no result on this head.

Session id: cron:our-pr-ci-monitor:20261029-160007

@vitlibar vitlibar self-assigned this Nov 2, 2026
…-selector-defer-table-resolution

# Conflicts:
#	src/Storages/StoragePrometheusQuery.cpp
#	src/Storages/StorageTimeSeriesSelector.cpp
@clickhouse-gh

clickhouse-gh Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

PromQL Compliance Report

Baseline: S3 master ab23bdd4e

Suite Baseline Current Delta
Prometheus compliance 100.00% 100.00% +0.00%
Extended support (upstream engine tests) 93.03% 93.17% +0.14%
Suite Passed Failed Unsupported
Prometheus compliance 539 -> 539 (+0) 0 -> 0 (+0) 0 -> 0 (+0)
Extended support (upstream engine tests) 681 -> 682 (+1) 17 -> 16 (-1) 34 -> 34 (+0)

Extended support (upstream engine tests): native-histogram exclusions: 149; excluded assertions: 248; upstream 3da2514eff5c.

Note: Prometheus compliance score is unchanged vs baseline.

Uploaded compliance JSON for this PR commit

This branch has not been deployed

No deployments
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 comp-promql PromQL / time-series subsystem: TimeSeries storage engine, PromQL parser, PromQL-to-SQL converter... groeneai-origin-oranjeai PR origin: delegated from the OranjeAI sibling fleet pr-experimental Experimental Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants