-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
DROP/MODIFY COLUMN for compact part memory usage for tables with thousands of columns. #27502
Comments
How much memory does it use before OOM? |
Around ~30GB as i understand
|
We see that it's not enough for 6000 columns. |
But it also make fix for #6943 problem not addressing it fully, because if clickhouse would try to merge such compact parts you again need much more memory for that and problem just moved one step further from INSERT to merge and ALTERs. So if you would have some concurrent merges happening, it could OOM even big servers.
For 3000 columns clickhouse would take 23.21 GiB of memory. |
I'm trying to improve it in #26929. By the way, the issue should not exist if vertical merge algorithm is selected. |
Looks like "vertical" algorithm cannot be used for compact parts. |
@CurtizJ It looks possible to enable vertical merge when doing Compact -> Wide parts. |
Any updates? BTW: why OOM, not the memory exception? Why does it happen with compact parts (or it happens when they get converted to wide?) |
In order to drop column, ClickHouse tries to convert compact part to wide afaik. |
But that means the same issue will happen when a few simultaneous (horizontal) merges will be triggered. |
No updates. |
If you have really wide table with many thousands of columns and you want to drop / modify column.
For wide parts it working fine, but for compact clickhouse would try to allocate a lot of memory and going to be killed via OOM killer.
Does it reproduce on recent release?
Yes, 21.9
How to reproduce
The text was updated successfully, but these errors were encountered: