Skip to content

Warn when CLEAR COLUMN leaves an EPHEMERAL-derived MATERIALIZED column stale, and cover it with a test - #115371

Merged
alexey-milovidov merged 13 commits into
masterfrom
fix-clear-column-ephemeral-materialized
Sep 13, 2026
Merged

alexey-milovidov merged 13 commits into
masterfrom
fix-clear-column-ephemeral-materialized

Conversation

@tiandiwonder

@tiandiwonder tiandiwonder commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes: #116875
Related: #110648
Related: #117035

What is left in this pull request

This pull request originally proposed narrowing the CLEAR COLUMN recompute set from every
recomputable MATERIALIZED column of the table to the dependency closure of the cleared columns.
Master has since landed exactly that design independently — clear_affected_materialized is now
affected_materialized_closure(clear_column_names) — and master also adapted
04546_ttl_delete_where_recalc_after_update and 04648_mutation_statistics_type_mismatch to the
narrow semantics instead of deleting the cases. Master's side was taken for all of it, so this branch
no longer carries a competing revert of #110648, and the design question that was raised for
@alexey-milovidov here is settled by what is already on master.

Two things remain, and they are all this pull request now changes:

1. The regression test for the original bug. ALTER TABLE ... CLEAR COLUMN used to fail on a
table with a MATERIALIZED column whose expression reads an EPHEMERAL column:

CREATE TABLE t
(
    x Int32, y Int32,
    e Int32 EPHEMERAL 0,
    me Int32 MATERIALIZED x + e,
    me2 Int32 MATERIALIZED me + 100,
    mk Int32 MATERIALIZED x + 1
)
ENGINE = MergeTree ORDER BY tuple() PARTITION BY tuple();

INSERT INTO t (x, y, e) VALUES (1, 0, 7);
ALTER TABLE t CLEAR COLUMN x IN PARTITION tuple();
Code: 341. DB::Exception: Exception happened during execution of mutation 'mutation_2.txt' with part
'all_1_1_0' reason: 'Code: 16. DB::Exception: There is no column or subcolumn e in table.
(NO_SUCH_COLUMN_IN_TABLE)'

EPHEMERAL columns exist only during INSERT, so a MATERIALIZED column reading one is absent from
the dependency graph the closure walks and can no longer reach the recompute stage. The behaviour is
correct on master; 05055_clear_column_ephemeral_materialized pins it, including that mk (which
does read the cleared x) is recomputed, and that a clear of a column no MATERIALIZED column
reads starts no recompute at all.

2. A stale-value warning that also covers cleared columns, decided over the recompute closure.
MutationsInterpreter::prepare warns when a mutation changes a dependency of a MATERIALIZED column
that reads an EPHEMERAL column, because that column is skipped by the recompute and its on-disk
value silently goes stale. The warning only looked at updated_columns, and only at the direct
inputs of the skipped column. CLEAR COLUMN leaves the value stale in exactly the same way, and a
chain hides the case entirely: with m1 MATERIALIZED x + 1 and m2 MATERIALIZED m1 + e,
CLEAR COLUMN x recomputes m1, skips m2, and m2's inputs are {m1, e} — neither is the cleared
column.

The staleness is now answered over the same transitive closure the recompute uses. The changed base
set is UPDATE columns, CLEAR COLUMN columns and patch-updated columns — exactly the three sets
whose closures are recomputed — and a skipped column is reported when any of its readable inputs is
in that set or in its closure. The check therefore had to move out of the loop that builds the
readable dependency graph (a later hop of a chain may still be unvisited while it runs) to just
after the graph is complete. The message says "updated or cleared".

05153_clear_column_stale_materialized_warning pins the chain case. It reads the warning out of
system.text_log, because the interpreter runs inside the background mutate task and its log never
reaches the client that issued the ALTER.

Verified locally: both tests pass, MutationsInterpreter.cpp builds clean and clickhouse links.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

Version info

  • Merged into: 26.9.1.1416-master (included in 26.9 and later)
  • Backported to: 26.8.18.2

…ved MATERIALIZED column

`CLEAR COLUMN` recomputes the MATERIALIZED columns that read the cleared
column. The recompute set was built by inserting *every* MATERIALIZED
column of the table once the closure of the cleared columns was found to
be non-empty, so it also picked up columns whose default reads an
EPHEMERAL column. Those cannot be evaluated outside INSERT — the
dependency analysis above deliberately skips them — and recomputing one
fails the whole mutation:

    Code: 341. Exception happened during execution of mutation
    'mutation_2.txt' with part 'all_1_1_0' reason: 'Code: 47.
    Missing columns: 'e' while processing: 'x + e'

The mutation then stays in the queue retrying, so a synchronous `ALTER`
either throws or waits forever, and the columns that should have been
recomputed keep their stale values.

Use the closure itself as the recompute set. It contains exactly the
MATERIALIZED columns reachable from a cleared column and, because the
analysis skips EPHEMERAL-derived ones, never contains a column that
cannot be recomputed.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d163946]

Summary: ✅


AI Review

Summary

This PR keeps the CLEAR COLUMN fix scoped to what is still unique on top of master: it warns when a skipped EPHEMERAL-derived MATERIALIZED column goes stale through the same transitive closure the recompute uses, and it adds focused regression coverage for both the original NO_SUCH_COLUMN_IN_TABLE case and the new warning path. The code change in MutationsInterpreter looks consistent with that contract, but the new log-based shell test is still too weak to prove the warning for the current run.

Findings

⚠️ Majors

  • tests/queries/0_stateless/05153_clear_column_stale_materialized_warning.sh:42 The new regression check is not keyed to this run. system.text_log is append-only, and dropping/recreating t_stale_warning does not remove historical log rows, so after one successful run a rerun in the same ${CLICKHOUSE_DATABASE} can stop emitting the warning entirely and still pass on the old MutationsInterpreter(${CLICKHOUSE_DATABASE}.t_stale_warning) row. Add a per-run lower bound (now64(6), query_id, CLICKHOUSE_LOG_COMMENT, or equivalent) to the system.text_log predicate; that also keeps the query from scanning the full log table.
Final Verdict

Needs one test fix before merge: the new system.text_log assertion should be bound to the mutation executed by this run, otherwise the review evidence for the warning path is not reliable.

LLVM Coverage Report

Measured on commit d163946.

Metric Baseline Current Δ
Lines 88.90% 88.90% +0.00%
Functions 91.80% 91.80% +0.00%
Branches 81.30% 81.30% +0.00%

Changed lines: Changed C/C++ lines covered: 25/25 (100.00%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Aug 18, 2026
tiandiwonder and others added 3 commits August 19, 2026 01:19
The first version narrowed the recompute set to the dependency closure of
the cleared columns. That breaks an existing guarantee: a metadata-only
`MODIFY COLUMN ... MATERIALIZED` schedules no mutation, so `CLEAR COLUMN`
is what refreshes the stored values of a column whose expression changed,
even when that column does not read the cleared one.
`04546_ttl_delete_where_recalc_after_update` pins exactly that behaviour.

Keep the original set and only drop the columns that cannot be recomputed
outside `INSERT` — the ones whose expression reads an `EPHEMERAL` column,
which the dependency analysis already skips for the same reason.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
`MaterializedColumnDependencies`, added by #114561, already computes for every
MATERIALIZED column whether its expression reads an EPHEMERAL one, and the dependency
analysis skips those columns through it. That replaced the loop this branch had been
collecting the same information in, hence the conflict.

Resolved by dropping this branch's own detection and asking the shared node instead, so
the fix is one condition on `clear_affected_materialized`. Keeping it there rather than in
`emit_materialized_recompute_stages` preserves the documented invariant that the set stays
equal to what the recompute writes.

The error the fix prevents also changed with #114561: `Missing columns: 'e' while
processing 'x + e'` (`UNKNOWN_IDENTIFIER`) is now `There is no column or subcolumn e in
table` (`NO_SUCH_COLUMN_IN_TABLE`). Test comment updated to match.

Co-Authored-By: Claude Opus 5 <[email protected]>
`CLEAR COLUMN` was the only mutation not using the dependency closure. `UPDATE` and
`APPLY PATCHES` recompute `affected_materialized_closure(changed_columns)`; `CLEAR COLUMN`
used that closure only as a non-emptiness test and then took every recomputable
MATERIALIZED column of the table. Use the closure as the set as well.

Three problems go away with the cause rather than being compensated for:

A column whose expression reads an EPHEMERAL one is absent from the graph the closure
walks, because it cannot be recomputed outside INSERT. It can no longer reach the
recompute stage, so the stage is never handed a name no part holds -- the exception this
branch previously avoided with an explicit filter.

The non-emptiness test walked that same graph, so a clear reaching only such a column
looked like it reached nothing and skipped the refresh of every other column. Gate and
set are now one expression and cannot disagree.

Recomputing a column in the base part while its projection was hardlinked stale is what
made the projection and skip-index rebuild necessary. An untouched column now keeps its
stored value and its projection at the pre-clear value, so they cannot diverge.

This reverses a deliberate choice: the wide set was there so that a metadata-only
`MODIFY COLUMN ... MATERIALIZED`, which schedules no mutation, would have its stored
values refreshed by an unrelated `CLEAR COLUMN`. `MATERIALIZE COLUMN` is the documented
command for that, and it is explicit, per-column and `IN PARTITION`-capable. The wide
behaviour also did not hold: with `enable_block_number_column` or
`enable_block_offset_column` on it does not happen at all, and the two cases in
`04546_ttl_delete_where_recalc_after_update` that pinned it had to set both to 0 to
observe it. Those cases are deleted.

Co-Authored-By: Claude Opus 5 <[email protected]>
@tiandiwonder tiandiwonder changed the title Fix mutation failing on CLEAR COLUMN when a MATERIALIZED column reads an EPHEMERAL column Narrow the CLEAR COLUMN recompute set to the dependency closure Aug 25, 2026
alexey-milovidov and others added 2 commits August 27, 2026 09:33
The section "CLEAR COLUMN recalculating MATERIALIZED columns" relied on the old behavior in which
`CLEAR COLUMN` rewrote every `MATERIALIZED` column of the table. With the recompute set narrowed to
the dependency closure of the cleared columns, the statistics-carrying column `e` must read the
cleared column `c` to be rewritten, so its new expression is `c + 2`, which yields the same values
and statistics as before. The reference file is unchanged.

Failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115371&sha=49efb8148c43b6a57254ab8e6d1a45219086be86&name_0=PR&name_1=Fast%20test

Co-Authored-By: Claude Fable 5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing d16394634 with master 1e7129b5d (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

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

Job report

`04926_clear_column_ephemeral_materialized` failed on six lanes (all four `flaky check`
jobs, `amd_msan WasmEdge` and `amd_tsan selected tests`) with `mk` at `2` instead of `1`:

    -0	8	108	1
    +0	8	108	2

`mk MATERIALIZED x + 1` was not recomputed. The runner randomizes
`enable_block_number_column`, `enable_block_offset_column` and `min_bytes_for_wide_part`,
and on a Wide part with either block column on, a mutation does not recompute MATERIALIZED
columns at all - so the recompute this test is about never ran, and `mk` kept its
pre-clear value.

Measured on this branch: the failure needs BOTH a Wide part AND a block column. Wide
alone, or either block column alone on a Compact part, still recomputes `mk` to `1`;
`min_bytes_for_full_part_storage` makes no difference. Pinning both block columns off
reproduces `mk = 1` deterministically - 6 runs with randomization pass, and flipping the
same clause to `= 1` with `min_bytes_for_wide_part = 0` reproduces the CI diff byte for
byte.

Only the first table needs the pin: `t_clear_unrelated` asserts that nothing is
recomputed, which holds under either setting.

The deleted section of `04546_ttl_delete_where_recalc_after_update` pinned these same two
settings for the same reason.
}
}
if (!clear_column_names.empty())
clear_affected_materialized = affected_materialized_closure(clear_column_names);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLEAR COLUMN now has a precise dependency-closure contract in the background mutation path, but the read-time apply_mutations_on_fly = 1 path still does not know that a cleared source column changed. AlterConversions::addMutationCommand records DROP_COLUMN/clear only in dropped_columns, so buildMutationChainForRead never seeds x into all_updated_columns and never pulls mk MATERIALIZED x + 1 into the on-fly chain. Concretely, with a pending CLEAR COLUMN x, SELECT x, mk ... SETTINGS apply_mutations_on_fly = 1 will return 0, 2 from the stale part even though the fully materialized part stores 0, 1.

Can we either teach AlterConversions to treat CLEAR COLUMN as an updated source column (mirroring this closure) or explicitly disable on-the-fly application for this case? A focused test with SYSTEM STOP MERGES would catch it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵 I verified this scenario locally, and the mismatch is real — but it is pre-existing and this PR does not change it byte-for-byte, so I tracked it separately in #117035 rather than growing this fix into a read-path feature.

Two corrections to the framing:

  1. It is not an apply_mutations_on_fly issue: a pending CLEAR COLUMN is applied eagerly for every read (the cleared column lands in AlterConversions::dropped_columns, and metadata mutations are always included into the mutations snapshot regardless of the setting). With merges stopped, SELECT x, mk returns 0, 2 with the setting both on and off.
  2. This PR does not touch that path and does not widen the window. For a column in the closure (mk), master behaves identically during the pending window and after materialization. What the PR changes is only the background recompute set — and for columns it stops recomputing (outside the closure), read-time and materialized states now actually agree, where on master they diverged. So the divergence set strictly shrinks here.

Since the eager-read behavior (and its interaction with IN PARTITION command selection, see the issue) predates this PR — it appeared with the recompute in #110648 — fixing it deserves its own PR with its own tests; both directions you suggest are written up in the issue. I did not add a test pinning the current mid-window values, because they are exactly what the follow-up should change.

alexey-milovidov and others added 2 commits August 29, 2026 08:51
A MATERIALIZED column that reads an EPHEMERAL column cannot be
recomputed by a mutation, so when `CLEAR COLUMN` clears one of its
regular dependencies its stored value silently goes stale. The
existing warning in `MutationsInterpreter::prepare` fired only for
`UPDATE`-ed dependencies; now it also fires when the dependency is in
`clear_column_names`, so the stale-data path is logged instead of
silent.

Addresses the review comment on #115371

Co-Authored-By: Claude Fable 5 <[email protected]>
…hemeral-materialized

Master has independently landed the same design this pull request proposed:
`clear_affected_materialized` is now the dependency closure of the cleared
columns (`affected_materialized_closure(clear_column_names)`) instead of every
`MATERIALIZED` column in the table, and master adapted
`04546_ttl_delete_where_recalc_after_update` and
`04648_mutation_statistics_type_mismatch` to the narrow semantics rather than
deleting the cases. Master's side is taken for all of that, so the branch no
longer carries a competing revert of #110648.

What remains unique to this pull request and is preserved:

- The stale-`MATERIALIZED` warning in `MutationsInterpreter::prepare` also fires
  for cleared columns, not only updated ones: a `MATERIALIZED` column reading an
  `EPHEMERAL` column is skipped by the recompute, so a `CLEAR COLUMN` of one of
  its regular dependencies silently leaves the on-disk value stale.
- The regression test for the original bug, renumbered
  `04926_clear_column_ephemeral_materialized` -> `05055_...` because master took
  the 04926 prefix.
@alexey-milovidov alexey-milovidov changed the title Narrow the CLEAR COLUMN recompute set to the dependency closure Warn when CLEAR COLUMN leaves an EPHEMERAL-derived MATERIALIZED column stale, and cover it with a test Sep 2, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Merged master and reworked the scope.

Master has independently landed the very design this pull request proposed: clear_affected_materialized in MutationsInterpreter::prepare is now affected_materialized_closure(clear_column_names) rather than every recomputable MATERIALIZED column of the table, and master adapted 04546_ttl_delete_where_recalc_after_update and 04648_mutation_statistics_type_mismatch to the narrow semantics instead of deleting the cases. The merge takes master's side for all of that, so the branch no longer carries a competing revert of #110648 — @alexey-milovidov, the design verdict this pull request was asking you for is settled by what is already on master, so nothing is pending on you here.

The diff against master is now 3 files / 64 insertions and only contains what master does not have:

  • the stale-MATERIALIZED warning also fires for cleared columns, not only updated ones (a MATERIALIZED column reading an EPHEMERAL column is skipped by the recompute, so a CLEAR COLUMN of one of its regular dependencies silently leaves the on-disk value stale, exactly as an UPDATE does);
  • the regression test for the original NO_SUCH_COLUMN_IN_TABLE bug, renumbered 04926_clear_column_ephemeral_materialized -> 05055_... because master took the 04926 prefix.

Verified locally against the merged tree: MutationsInterpreter.cpp compiles clean and 05055_clear_column_ephemeral_materialized passes.

The one open review thread (the read-time apply_mutations_on_fly mismatch) is unchanged and still tracked in #117035; it is now marked outdated since the code it pointed at is master's.

@clickhouse-gh clickhouse-gh Bot added the comp-mutations ALTER UPDATE/DELETE and mutation execution over parts (including lightweight updates/deletes). label Sep 4, 2026
…ure as the recompute

The warning added for `CLEAR COLUMN` only looked at the direct readable inputs of the
skipped column, so a chain stayed silent: with `m1 MATERIALIZED x + 1` and
`m2 MATERIALIZED m1 + e` (`e` `EPHEMERAL`), `CLEAR COLUMN x` recomputes `m1`, skips `m2`,
and `m2`'s inputs are `{m1, e}` — neither is the cleared column, so nothing was reported
even though `m2` is left stale behind one `MATERIALIZED` hop.

Answer it over the same transitive closure the recompute uses, which means moving the
check out of the loop that builds the readable dependency graph (a later hop of a chain
may still be unvisited while the loop runs) to just after the graph is complete. The
changed base set is now `UPDATE` columns, `CLEAR COLUMN` columns and patch-updated
columns — exactly the three sets whose closures are recomputed.

Addresses the review finding on `src/Interpreters/MutationsInterpreter.cpp`.
…TERIALIZED` hop

`m2 MATERIALIZED m1 + e` with `m1 MATERIALIZED x + 1` and `e` `EPHEMERAL`: `CLEAR COLUMN x`
recomputes `m1`, cannot recompute `m2`, and so leaves `m2` stale. The warning is emitted
inside the background mutate task, so it never reaches the client that issued the `ALTER`
and the test reads it from `system.text_log`, keyed on the logger name that carries the table.

Verified load-bearing: with the staleness decided from the directly changed columns only —
the shape this replaces — the test reports `warned about m2	0`.
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Addressed the review finding, merged master (4117 commits) and pushed d163946342ab.

Review finding on src/Interpreters/MutationsInterpreter.cpp — adopted. The stale-MATERIALIZED warning is now decided over the same transitive closure the recompute uses, not over the directly changed columns. The check had to move out of the loop that builds the readable dependency graph, because while that loop runs a later hop of a chain may still be unvisited; it now runs right after the graph is complete. The changed base set is UPDATE columns, CLEAR COLUMN columns and patch-updated columns — exactly the three sets whose closures are recomputed. So m2 MATERIALIZED m1 + e with m1 MATERIALIZED x + 1 and e EPHEMERAL is now reported for CLEAR COLUMN x: closure({x}) is {m1}, and m1 is an input of m2.

New test 05153_clear_column_stale_materialized_warning covers exactly that chain. It reads the warning out of system.text_log rather than the client stream, because the interpreter runs inside the background mutate task and its log never reaches the client that issued the ALTER. Verified load-bearing: rebuilt with the staleness decided from the directly changed columns only, and the test reports warned about m2 0.

The one CI failure is unrelated and already tracked. Upgrade check (amd_release) failed on Error message in clickhouse-server.log with a MutatePlainMergeTreeTask loop of Code: 16. DB::Exception: Unexpected const virtual column: _table: While executing MergeTreeSequentialSource. (NO_SUCH_COLUMN_IN_TABLE). That is #102331, whose fix is #117724 — not on master yet, so the red is expected to persist here until that lands. This pull request only adds a Warning-level log line and a test, so it cannot produce an Error in a mutation task.

Verified locally against the merged tree: MutationsInterpreter.cpp compiles clean, clickhouse links, and 05153_clear_column_stale_materialized_warning, 05055_clear_column_ephemeral_materialized, 04546_ttl_delete_where_recalc_after_update, 04648_mutation_statistics_type_mismatch, 01114_clear_column_compact_parts, 01387_clear_column_default_depends, 01416_clear_column_pk and 01851_clear_column_referenced_by_mv all pass. check_style.py reports only the two local-environment failures (broken symlinks inside my build directory, and the settings-history check refusing to run without the CI changed_files hook).

The other open thread (the read-time apply_mutations_on_fly mismatch) is unchanged: it is pre-existing, not widened by this change, and tracked in #117035.

# that issued the ALTER. The logger name carries the table, which isolates the rows well enough.
${CLICKHOUSE_CLIENT} -q "
SYSTEM FLUSH LOGS text_log;
SELECT 'warned about m2', count() >= 1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

system.text_log is append-only, and DROP TABLE IF EXISTS / DROP TABLE do not remove old rows, so this assertion is not tied to the mutation that just ran. After one successful run, a rerun in the same ${CLICKHOUSE_DATABASE} can regress the warning emission completely and still satisfy count() >= 1 from the historical MutationsInterpreter(${CLICKHOUSE_DATABASE}.t_stale_warning) row. Can we capture a per-run lower bound (now64(6), query_id, CLICKHOUSE_LOG_COMMENT, etc.) before the ALTER and filter the log query on it? That also avoids scanning the whole system.text_log.

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Sep 13, 2026
Merged via the queue into master with commit 670b5a3 Sep 13, 2026
175 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-clear-column-ephemeral-materialized branch September 13, 2026 19:17
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 13, 2026
@robot-clickhouse robot-clickhouse added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Sep 26, 2026
@PedroTadim

Copy link
Copy Markdown
Member

@alexbakharew why are we backporting this to 26.8?

robot-ch-test-poll added a commit that referenced this pull request Oct 3, 2026
Cherry pick #115371 to 26.8: Warn when CLEAR COLUMN leaves an EPHEMERAL-derived MATERIALIZED column stale, and cover it with a test
robot-clickhouse added a commit that referenced this pull request Oct 3, 2026
…derived MATERIALIZED column stale, and cover it with a test
@robot-clickhouse robot-clickhouse added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Oct 3, 2026
clickhouse-gh Bot added a commit that referenced this pull request Oct 5, 2026
Backport #115371 to 26.8: Warn when CLEAR COLUMN leaves an EPHEMERAL-derived MATERIALIZED column stale, and cover it with a test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-mutations ALTER UPDATE/DELETE and mutation execution over parts (including lightweight updates/deletes). pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo v26.8-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLEAR COLUMN fails with NO_SUCH_COLUMN_IN_TABLE when the table has a MATERIALIZED column depending on an EPHEMERAL column

6 participants