Unexpected result on two JOIN
#42963
Labels
affects-7.1
fuzz/sqlancer
may-affects-4.0
This bug maybe affects 4.0.x versions.
may-affects-5.0
This bug maybe affects 5.0.x versions.
may-affects-5.1
This bug maybe affects 5.1.x versions.
may-affects-5.2
This bug maybe affects 5.2.x versions.
may-affects-5.3
This bug maybe affects 5.3.x versions.
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
severity/major
sig/planner
SIG: Planner
type/bug
This issue is a bug.
Bug Report
1. Minimal reproduce step (Required)
Consider the following program:
2. What did you expect to see? (Required)
The second
SELECT
is equivalent to the thirdSELECT
query, but the thirdSELECT
query should have non-empty result. I run this query with MySQL, it generates non-empty results. https://www.db-fiddle.com/f/ghC6nTdVaf5tBnCa9vFYC4/0If I remove one of the
JOIN
in the thirdSELECT
query, it will have correct results.3. What did you see instead (Required)
The third
SELECT
query generate empty results.4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: