Where clause on right outer join might lead to rows not being fetched #59162
Labels
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
may-affects-8.1
may-affects-8.5
severity/major
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
This is also the expected result in MySQL (8.0) and MariaDB (11.5).
3. What did you see instead (Required)
no rows
Moreover, the result obtained in the above query is inconsistent with the following:
In this query, the result is:
Thus, the condition in the
WHERE
clause evaluates to true in the 2nd row, and the 2nd row should be returned in the original query.4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: