Skip to content

Allow to perform "metadata-only" ALTER of partition key.#11973

Merged
alesapin merged 16 commits intomasterfrom
alter-enum-partition-key
Jun 29, 2020
Merged

Allow to perform "metadata-only" ALTER of partition key.#11973
alesapin merged 16 commits intomasterfrom
alter-enum-partition-key

Conversation

@alexey-milovidov
Copy link
Member

@alexey-milovidov alexey-milovidov commented Jun 25, 2020

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Allow to perform "metadata-only" ALTER of partition key such as adding more elements to Enum data type. This fixes #7513.

Details:
This feature was discussed on ClickHouse Meetup online on Jun 18.

@alexey-milovidov alexey-milovidov marked this pull request as ready for review June 25, 2020 23:21
@alesapin alesapin self-assigned this Jun 26, 2020
@blinkov blinkov added the pr-improvement Pull request with some product improvements label Jun 26, 2020
@alexey-milovidov
Copy link
Member Author

Integration tests

Broken in #11903

@alexey-milovidov alexey-milovidov force-pushed the alter-enum-partition-key branch from 8e46771 to d429ead Compare June 28, 2020 19:40
Copy link
Member

@alesapin alesapin left a comment

Choose a reason for hiding this comment

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

LGTM. Also, we have a check for partition key in ReplicatedMergeTreeMetadata, but it verifies only column names, without types.

@alesapin alesapin merged commit 718262e into master Jun 29, 2020
@alesapin alesapin deleted the alter-enum-partition-key branch June 29, 2020 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changes of Enum in partition key don't work

4 participants