Skip to content

Implemented modifying table comments with ALTER TABLE t MODIFY COMMENT 'value'#29264

Merged
alesapin merged 5 commits intoClickHouse:masterfrom
Enmk:governance/table_comment_update
Sep 27, 2021
Merged

Implemented modifying table comments with ALTER TABLE t MODIFY COMMENT 'value'#29264
alesapin merged 5 commits intoClickHouse:masterfrom
Enmk:governance/table_comment_update

Conversation

@Enmk
Copy link
Copy Markdown
Contributor

@Enmk Enmk commented Sep 22, 2021

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Implemented ALTER TABLE x MODIFY COMMENT

Detailed description / Documentation draft:
Users can now add\remove\modify comments on existing tables.

  • ALTER TABLE x MODIFY COMMENT 'new comment' - sets table comment to be a new comment, regardless if it was set before or not.
  • ALTER TABLE x MODIFY COMMENT '' - removes a table comment.

Comment change is reflected in both system.tables and SHOW CREATE TABLE.

@robot-clickhouse robot-clickhouse added doc-alert pr-feature Pull request with new product feature labels Sep 22, 2021
@alesapin alesapin self-assigned this Sep 22, 2021
@Enmk Enmk added the altinity label Sep 23, 2021
@alesapin
Copy link
Copy Markdown
Member

Integration tests not affected.

@alesapin alesapin merged commit ddd80c8 into ClickHouse:master Sep 27, 2021
@sevirov
Copy link
Copy Markdown
Contributor

sevirov commented Sep 27, 2021

Internal documentation ticket: DOCSUP-15458

@alexey-milovidov
Copy link
Copy Markdown
Member

@alesapin, it's funny that even the test in this PR is wrong. It "cemented" the incorrect behavior.

@alexey-milovidov
Copy link
Copy Markdown
Member

@Enmk, it does not work at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-feature Pull request with new product feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants