Skip to content
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

ticase 1247 fail #33280

Closed
time-and-fate opened this issue Mar 21, 2022 · 0 comments · Fixed by #33241
Closed

ticase 1247 fail #33280

time-and-fate opened this issue Mar 21, 2022 · 0 comments · Fixed by #33241
Assignees
Labels
severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@time-and-fate
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

use test
drop table if exists t1;
drop table if exists t2;
create table t1(a int);
create table t2(a int);
insert into t1 values(null), (null), (null), (null);
insert into t2 values(null), (null);
analyze table t1;
analyze table t2;
explain select * from t2 left join t1 on t1.a=t2.a order by t1.a, t2.a;

2. What did you expect to see? (Required)

Build side of the Join is t1.

3. What did you see instead (Required)

Build side of the Join is t2.

4. What is your TiDB version? (Required)

master, release-6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants