-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
21.10+: MODIFY COLUMN to Nullable may lead to data becoming unavaliable / incorrect #42083
Comments
Workaround to make data readable again: for parts with old state/type of columns rewrite columns.txt |
I can't seem to reproduce it, neither in master nor in 22.3. Neither if I run the queries manually or if I call them with --queries-file:
Does this need some kind of restart, debug build or anything? |
I've edited test a bit to show that it reproduces.
that line is wrong, it should be
|
Great, now I understand it. Thanks! I guess that as a workaround to avoid this problem at the user level would be to force a rewrite of the parts after |
OPTIMIZE FINAL can be superexpensive. can be used. But usually the problem discovered much later.
|
Doesn't work, part types still inconsistent ;( but not fot all cases |
Revert does not resolves the root cause of the issue. columns.txt file still can be damaged by mutation / alter in a way when some columns will become unreadable. Also related to #38067 |
@filimonov please provide a test case. |
The root cause has been fixed #42319 |
Also another case after
And this column is part of a projection but I don't know if it also is affected. I'll investigate if this is also fixed by #42319 |
The issue is not fixed. |
This issue seems fixed in all versions from 23.x onwards. At least the reproducer is not reproduced, e.g.. Are there any other cases where a MODIFY TABLE to Nullable may cause corruption? If so, do you have a reproducer? |
Fixed |
repro
The text was updated successfully, but these errors were encountered: