-
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
executor: wrong results for outer join in a case #23891
Labels
Comments
Closed
/assign @XuHuaiyu |
minor case: drop table t,s;
create table t(id int primary key, a int);
create table s(a int);
insert into s values(1),(2);
select t.id = 1.234 from t right join s on t.a = s.a; |
We can see from the explain result that +-------------------------------+----------+-----------+---------------+--------------------------------------------------+
| id | estRows | task | access object | operator info |
+-------------------------------+----------+-----------+---------------+--------------------------------------------------+
| Projection_5 | 2.50 | root | | 0->Column#5 |
| └─HashJoin_7 | 2.50 | root | | right outer join, equal:[eq(test.t.a, test.s.a)] |
| ├─TableReader_12(Build) | 2.00 | root | | data:TableFullScan_11 |
| │ └─TableFullScan_11 | 2.00 | cop[tikv] | table:s | keep order:false, stats:pseudo |
| └─TableReader_10(Probe) | 9990.00 | root | | data:Selection_9 |
| └─Selection_9 | 9990.00 | cop[tikv] | | not(isnull(test.t.a)) |
| └─TableFullScan_8 | 10000.00 | cop[tikv] | table:t | keep order:false, stats:pseudo |
+-------------------------------+----------+-----------+---------------+--------------------------------------------------+
7 rows in set (0.00 sec) |
Please edit this comment or add a new comment to complete the following informationNot a bug
Duplicate bug
BugNote: Make Sure that 'component', and 'severity' labels are added 1. Root Cause Analysis (RCA) (optional)2. Symptom (optional)3. All Trigger Conditions (optional)4. Workaround (optional)5. Affected versions6. Fixed versions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
mysql -h172.16.5.85 -P52324 -uroot -D subquery_agg10000
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master of nightly
The text was updated successfully, but these errors were encountered: