Skip to content

Fix system tables recreation check (fails to detect changes in enum values)#29857

Merged
kitaisreal merged 1 commit intoClickHouse:masterfrom
azat:system-tables-diff-check
Oct 7, 2021
Merged

Fix system tables recreation check (fails to detect changes in enum values)#29857
kitaisreal merged 1 commit intoClickHouse:masterfrom
azat:system-tables-diff-check

Conversation

@azat
Copy link
Copy Markdown
Member

@azat azat commented Oct 7, 2021

Changelog category (leave one):

  • Bug Fix (user-visible misbehaviour in official stable or prestable release)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix system tables recreation check (fails to detect changes in enum values)

getTreeHash() does takes all possible values of enum into account, and so if someone will extend some Enum type then the table will not be recreated.

Fixes: #23934 (cc @kitaisreal)

NOTE: although seems that the definition of tables hadn't been changed in that way that getTreeHash cannot detect the change, so I guess no need to backport

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Oct 7, 2021
@kitaisreal kitaisreal self-assigned this Oct 7, 2021
@kitaisreal kitaisreal merged commit 651c725 into ClickHouse:master Oct 7, 2021
@azat azat deleted the system-tables-diff-check branch October 7, 2021 21:12
robot-clickhouse pushed a commit that referenced this pull request Oct 8, 2021
robot-clickhouse pushed a commit that referenced this pull request Oct 8, 2021
robot-clickhouse pushed a commit that referenced this pull request Oct 8, 2021
kitaisreal added a commit that referenced this pull request Oct 8, 2021
Backport #29857 to 21.9: Fix system tables recreation check (fails to detect changes in enum values)
kitaisreal added a commit that referenced this pull request Oct 8, 2021
Backport #29857 to 21.8: Fix system tables recreation check (fails to detect changes in enum values)
kitaisreal added a commit that referenced this pull request Oct 8, 2021
Backport #29857 to 21.10: Fix system tables recreation check (fails to detect changes in enum values)
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