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

Internal : Can't find a proper physical plan for this query #23051

Closed
aytrack opened this issue Mar 2, 2021 · 2 comments
Closed

Internal : Can't find a proper physical plan for this query #23051

aytrack opened this issue Mar 2, 2021 · 2 comments
Labels
severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@aytrack
Copy link
Contributor

aytrack commented Mar 2, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE IDT_9903 (COL1 LONGBLOB,COL2 SMALLINT(4),COL3 DATETIME(2),KEY U_M_COL(COL1(10),COL2,COL3));
prepare stmt from 'select t1.col1, t2.col2 from IDT_9903 as t1 inner join IDT_9903 as t2 on t1.col1 = t2.col1 where t1.col1 = ?;';
execute stmt using@a;

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

mysql root@127.0.0.1:test>  CREATE TABLE IDT_9903 (COL1 LONGBLOB,COL2 SMALLINT(4),COL3 DATETIME(2),KEY U_M_COL(COL1(10),COL2,COL3));
Query OK, 0 rows affected
Time: 0.006s
mysql root@127.0.0.1:test> prepare stmt from 'select t1.col1, t2.col2 from IDT_9903 as t1 inner join IDT_9903 as t2 on t1.col1 = t2.col1 where t1.col1 = ?;';
Query OK, 0 rows affected
Time: 0.001s
mysql root@127.0.0.1:test> set @a=NULL;
Query OK, 0 rows affected
Time: 0.001s
mysql root@127.0.0.1:test> execute stmt using@a;
+------+------+
| col1 | col2 |
+------+------+

3. What did you see instead (Required)

mysql root@127.0.0.1:test>  CREATE TABLE IDT_9903 (COL1 LONGBLOB,COL2 SMALLINT(4),COL3 DATETIME(2),KEY U_M_COL(COL1(10),COL2,COL3));
Query OK, 0 rows affected
Time: 0.006s
mysql root@127.0.0.1:test> prepare stmt from 'select t1.col1, t2.col2 from IDT_9903 as t1 inner join IDT_9903 as t2 on t1.col1 = t2.col1 where t1.col1 = ?;';
Query OK, 0 rows affected
Time: 0.001s
mysql root@127.0.0.1:test> set @a=NULL;
Query OK, 0 rows affected
Time: 0.001s
mysql root@127.0.0.1:test> execute stmt using@a;
(1815, "Internal : Can't find a proper physical plan for this query")

4. What is your TiDB version? (Required)

master 550ca8e
5.0-rc f41ca49

@aytrack aytrack added type/bug The issue is confirmed as a bug. sig/planner SIG: Planner severity/moderate labels Mar 2, 2021
@jebter jebter added this to the v5.0.0 ga milestone Mar 21, 2021
@zimulala zimulala removed this from the v5.0.0 ga milestone Mar 23, 2021
@eurekaka
Copy link
Contributor

Fixed by #23238.

@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

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

No branches or pull requests

5 participants