Skip to content

Do not start mutation for alters with wrong type conversion#21007

Merged
alesapin merged 1 commit intoClickHouse:masterfrom
CurtizJ:alter-bad-conversions
Feb 24, 2021
Merged

Do not start mutation for alters with wrong type conversion#21007
alesapin merged 1 commit intoClickHouse:masterfrom
CurtizJ:alter-bad-conversions

Conversation

@CurtizJ
Copy link
Copy Markdown
Member

@CurtizJ CurtizJ commented Feb 20, 2021

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

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fixed behaviour, when ALTER MODIFY COLUMN created mutation, that will knowingly fail.

Detailed description / Documentation draft:
This may lead to situation, when table metadata was changed to new and some parts were already written with new schema. So, we can't alter neither old parts to new schema, nor new parts to old schema. Only drop of column is possible in that case.

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Feb 20, 2021
@CurtizJ CurtizJ force-pushed the alter-bad-conversions branch from 5be350c to 48e1886 Compare February 20, 2021 16:12
@alesapin alesapin self-assigned this Feb 20, 2021
Copy link
Copy Markdown
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

@alesapin alesapin merged commit 427e5f2 into ClickHouse:master Feb 24, 2021
robot-clickhouse pushed a commit that referenced this pull request Feb 24, 2021
robot-clickhouse pushed a commit that referenced this pull request Feb 24, 2021
robot-clickhouse pushed a commit that referenced this pull request Feb 24, 2021
robot-clickhouse pushed a commit that referenced this pull request Feb 24, 2021
robot-clickhouse pushed a commit that referenced this pull request Feb 24, 2021
alesapin added a commit that referenced this pull request Mar 1, 2021
Backport #21007 to 21.1: Do not start mutation for alters with wrong type conversion
alesapin added a commit that referenced this pull request Mar 1, 2021
Backport #21007 to 20.12: Do not start mutation for alters with wrong type conversion
alesapin added a commit that referenced this pull request Mar 1, 2021
Backport #21007 to 21.2: Do not start mutation for alters with wrong type conversion
alesapin added a commit that referenced this pull request Mar 1, 2021
Backport #21007 to 20.8: Do not start mutation for alters with wrong type conversion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants