Repository navigation
Revert "Fix ALTER TABLE ... COMMENT COLUMN being silently discarded on a materialized view with an inner table" - #122902
Merged
Conversation
…n a materialized view with an inner table"
PedroTadim
enabled auto-merge
September 29, 2026 15:03
Contributor
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #119469
Broke private CI: https://d1k2gkhrlfqv31.cloudfront.net/clickhouse-test-reports-private/praktika.html?REF=master&sha=0f81bee36c7decd3727c0bbcb788ff41ae336689&name_0=MasterCI&name_1=Stress%20test%20%28amd_tsan%2C%20SharedCatalog%2C%20meta%20in%20keeper%29&name_1=Stress%20test%20%28amd_tsan%2C%20SharedCatalog%2C%20meta%20in%20keeper%29
Workflow [PR]
Sync PR [sync-upstream/pr/122902]
Version info
26.10.1.1026-master(included in26.10and later)