-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Incorrect Result by LEFT JOIN
#38304
Labels
Comments
ti-chi-bot
added
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.0
may-affects-6.1
may-affects-6.2
may-affects-6.3
labels
Oct 8, 2022
ChenPeng2013
added
affects-5.0
This bug affects 5.0.x versions.
affects-5.1
This bug affects 5.1.x versions.
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
This bug affects 5.4.x versions.
affects-6.0
affects-6.1
affects-6.2
affects-6.3
labels
Oct 11, 2022
ti-chi-bot
removed
may-affects-5.2
This bug maybe affects 5.2.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.3
This bug maybe affects 5.3.x versions.
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.0
may-affects-6.1
labels
Oct 11, 2022
1 task
Yisaer
removed
affects-5.0
This bug affects 5.0.x versions.
affects-5.1
This bug affects 5.1.x versions.
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
This bug affects 5.4.x versions.
may-affects-4.0
This bug maybe affects 4.0.x versions.
affects-6.0
affects-6.1
affects-6.2
affects-6.3
labels
Oct 12, 2022
The main reason is that planner transformed left outer join into inner join due to it thinks |
ti-chi-bot
pushed a commit
that referenced
this issue
Oct 13, 2022
mjonss
added a commit
that referenced
this issue
Oct 13, 2022
* mockkv: make pk id = -1 if no primary key column is used (#38443) * ddl: support modify column on partitioned table (#38302) close #38297 * planner: revise isnullRejected check for `And` and `OR` (#38430) close #38304 Co-authored-by: xiongjiwei <[email protected]> Co-authored-by: Song Gao <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug Report
Inconsistent results by
LEFT JOIN
.1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
The first
SELECT
returns non-empty results and the predicateNOT '2' =(t1.c0 AND t0.c1 IS NULL)
is evaluatedTRUE
in the secondSELECT
, but the thirdSELECT
returns nothing.3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: