Skip to content

Revert "Fix ALTER TABLE ... COMMENT COLUMN being silently discarded on a materialized view with an inner table" - #122902

Merged
PedroTadim merged 1 commit into
masterfrom
revert-119469-fix-mv-alter-column-comment
Sep 29, 2026
Merged

PedroTadim merged 1 commit into
masterfrom
revert-119469-fix-mv-alter-column-comment

Conversation

@PedroTadim

@PedroTadim PedroTadim commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

@clickhouse-gh

clickhouse-gh Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [3b8db49]

Summary: ✅

@clickhouse-gh clickhouse-gh Bot added pr-not-for-changelog This PR should not be mentioned in the changelog comp-materialized-view Materialized views: insert-triggered MV pipeline, insert dependencies, deduplication. labels Sep 29, 2026
@PedroTadim
PedroTadim added this pull request to the merge queue Sep 29, 2026
Merged via the queue into master with commit 5ac4352 Sep 29, 2026
149 checks passed
@PedroTadim
PedroTadim deleted the revert-119469-fix-mv-alter-column-comment branch September 29, 2026 19:24
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 29, 2026
PedroTadim added a commit that referenced this pull request Oct 1, 2026
…rialized view with an inner table

Re-lands #119469, reverted by
#122902 for breaking the private
`Stress test (amd_tsan, SharedCatalog, meta in keeper)`.

That failure came from the copy of the inner table's columns over the view's,
which overwrote comments the statement had just set. SharedCatalog replays a
comment change as DROP COLUMN plus ADD COLUMN ... COMMENT, which is no comment
alter and so never reaches the inner table, and a MODIFY QUERY after a COMMENT
COLUMN rebuilds the view's columns without it. The comments a statement sets
are now taken from its commands and applied over the copied columns; every
other column keeps the inner table's comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-materialized-view Materialized views: insert-triggered MV pipeline, insert dependencies, deduplication. 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants