Fix crash when chaining uniqStates#24523
Conversation
|
Notes about CI: The unrelated clang failure is fixed in master already (a21e4b3) and the failed stateless test (00910_zookeeper_test_alter_compression_codecs_long) has nothing to do with the changes. |
|
@Mergifyio update |
|
Command
|
|
Hi, does this need any change or improvement? The CI errors seem to be completely unrelated with the changes. |
|
@Algunenano CI checks looks almost alright. It is waiting for review. |
|
Ah ok, thanks! |
|
@Algunenano @nikitamikhaylov What was the main reason for the bug? |
I couldn't find where the bug is. I expect the bug (or bugs) to be found in a completely different place of where the crashes are happening and after a couple of days of looking into it I couldn't find it and forbit it instead. I don't know how many people need to actually calculate the distinct states of distintct states and it's more likely done by mistake rather than an actual need (at least it was in our case). But that's a different topic, if CH wanted to support it then the issues would need to be found and addressed. |
Yes, I also expect that :) I just in doubt that the fix is just covering the culprit instead of making it clear. The fix is valuable nevertheless, thank you! |
Please let me know if I can help in any way. I'm trying to (slowly) learn the internals of ClickHouse. |
|
The real reason is that the type is wrong: Has to be something like I will check how it is possible. |
|
Another example: |
|
The bug was introduced in #7109. |
|
This PR does not fix the issue, here is another reproducer: |
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Disallow building uniqXXXXStates of other aggregation states
Detailed description / Documentation draft:
Fixes #24461
Affects all releases so I it should be backported but I'm unsure how the process works.