-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
1 task
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 <xiongjiwei1996@outlook.com> Co-authored-by: Song Gao <disxiaofei@163.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: