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 cross join results for mpp queries occasionally #50358
Comments
/assign yibin87 |
The issue is introduced by several steps during optimization:
Now, the LogicalPlan will have two projections as parent and child: Join(t0, t1, reordered=true, cartesianJoin=false) => Projection1(schema: old_join_schema) => Projection(schema: constant_column)
|
I can't reproduce this problem. Is it a issue from custom? |
No, it's from one of tiflash regression tests, and low possibility to reproduce with high concurrency. |
Fixed in tidb |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
create table t0 ( a int , b int);
create table t1( c int);
insert into t0 values(10, 20);
insert into t1 values(10);
alter table t0 set tiflash replica 1;
alter table t1 set tiflash replica 1;
set session tidb_isolation_read_engines='tiflash';
select 5 from t0 join t1;
2. What did you expect to see? (Required)
+---+
| 5 |
+---+
| 5 |
+---+
3. What did you see instead (Required)
Empty result sets.
Note, it is hard to reproduce the issue manually. The reproduce possiblity is rather low.
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: