Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reading from field. #10721

Merged
merged 1 commit into from
May 7, 2020
Merged

Fix reading from field. #10721

merged 1 commit into from
May 7, 2020

Conversation

KochetovNicolai
Copy link
Member

@KochetovNicolai KochetovNicolai commented May 7, 2020

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):
Fix data corruption for LowCardinality(FixedString) key column in SummingMergeTree which could have happened after merge. Fixes #10489.

It happened because internal format of Field was changed. Bug happened when inserting Field into LowCardinality(FixedString) column, which, probably, is not common.

@KochetovNicolai KochetovNicolai added pr-bugfix Pull request with bugfix, not backported by default no-docs-needed labels May 7, 2020
Copy link
Member

@alexey-milovidov alexey-milovidov left a comment

Choose a reason for hiding this comment

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

I don't understand how internal format of Field was changed.

@alexey-milovidov alexey-milovidov merged commit 6edb0ea into master May 7, 2020
@alexey-milovidov alexey-milovidov deleted the fix-10489 branch May 7, 2020 12:55
@KochetovNicolai
Copy link
Member Author

Indeed. Field was not changed. This bug was all the time.

KochetovNicolai pushed a commit that referenced this pull request May 7, 2020
Fix reading from field.

(cherry picked from commit 6edb0ea)
KochetovNicolai pushed a commit that referenced this pull request May 7, 2020
Fix reading from field.

(cherry picked from commit 6edb0ea)
KochetovNicolai pushed a commit that referenced this pull request May 7, 2020
Fix reading from field.

(cherry picked from commit 6edb0ea)
KochetovNicolai added a commit that referenced this pull request May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-docs-needed pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LowCardinality(FixedString(N)) corrupts data in SummingMergeTree
2 participants