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
WHERE-clause with two ORs doesn't evaluate to true #54779
Comments
It's fixed in master, we need to find the fix and backport |
Not fixed in 'head' https://fiddle.clickhouse.com/9345c830-4bd3-401b-87cd-0507ed6e000e |
I came around to bisecting this and the first bad commit seems to be 68aed0d. Could someone with better understanding than me take a look? |
cc @azat |
Hi @slanderous-mambo, thanks for bisect!
Here is a fix - #55418 P.S. @den-crane thanks for tagging me P.P.S. BTW you can surely tag commit author by yourself. |
What's wrong
Hello. We encountered a regression in some of our queries after upgrading Clickhouse from 23.7 to 23.8. Now, inside a WHERE-clause a three-literal or-clause doesn't get evaluated right if two of the clauses are always false and one is sometimes true.
Does it reproduce on recent release?
Every release starting with 23.8
How to reproduce
Same behavior with fiddle (using versions >= 23.8): https://fiddle.clickhouse.com/424f3fbf-58db-4b3a-b1c8-f4a287a9bf05
Expected behavior
Clickhouse should (and did with 23.7) instead return
Additional context
Note that this doesn't happen with
ENGINE=Memory
and only happens with two times "OR false", not one or three times "OR false".The text was updated successfully, but these errors were encountered: