Unexpected Results of IN expression With NATURAL RIGHT JOIN #49476
Labels
affects-8.1
fuzz/sqlancer
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
may-affects-7.1
may-affects-7.5
severity/major
sig/planner
SIG: Planner
type/bug
This issue is a bug.
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: