-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Unexpected Results of IN expression With NATURAL RIGHT JOIN #49476
Comments
/label fuzz/sqlancer |
This one is related to the null-rejective checking. |
As @winoros said, it is caused by null rejection logic which incorrectly converts the right outer join to inner join. Plan1
|
Bug Report
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
The third
SELECT
returns an empty set, which is surprising: If the result of second query is 1 (TRUE
), the value of theIN
expression should be1
, and thus the third query should return0
.Not sure if the issue is related to #49108
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: