-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
runtime error: index out of range [0] with length 0 #42150
Labels
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
epic/plan-cache
severity/major
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Comments
ChenPeng2013
added
type/bug
The issue is confirmed as a bug.
sig/planner
SIG: Planner
severity/major
epic/plan-cache
labels
Mar 13, 2023
ti-chi-bot
added
may-affects-4.0
This bug maybe affects 4.0.x versions.
may-affects-5.0
This bug maybe affects 5.0.x versions.
may-affects-5.1
This bug maybe affects 5.1.x versions.
may-affects-5.2
This bug maybe affects 5.2.x versions.
may-affects-5.3
This bug maybe affects 5.3.x versions.
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
may-affects-6.5
labels
Mar 13, 2023
ChenPeng2013
removed
may-affects-4.0
This bug maybe affects 4.0.x versions.
may-affects-5.1
This bug maybe affects 5.1.x versions.
may-affects-5.2
This bug maybe affects 5.2.x versions.
may-affects-5.3
This bug maybe affects 5.3.x versions.
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-5.0
This bug maybe affects 5.0.x versions.
may-affects-6.1
may-affects-6.5
labels
Mar 13, 2023
12 tasks
minimal reproduce step mysql> prepare stmt from 'select c_enum from t1';
Query OK, 0 rows affected (0.00 sec)
mysql> execute stmt;
Empty set (0.00 sec)
mysql> execute stmt;
ERROR 1105 (HY000): runtime error: index out of range [0] with length 0 plan +-----------------------+----------+---------+-----------+----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+--------+------+
| id | estRows | actRows | task | access object | execution info | operator info | memory | disk |
+-----------------------+----------+---------+-----------+----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+--------+------+
| IndexReader_9 | 10000.00 | 0 | root | | time:623.8µs, loops:1, cop_task: {num: 1, max: 462.4µs, proc_keys: 0, rpc_num: 1, rpc_time: 417.8µs, copr_cache_hit_ratio: 0.00, build_task_duration: 25.1µs, max_distsql_concurrency: 1} | index:IndexFullScan_8 | N/A | N/A |
| └─IndexFullScan_8 | 10000.00 | 0 | cop[tikv] | table:t1, index:c_datetime(c_datetime) | tikv_task:{time:379.8µs, loops:0} | keep order:false, stats:pseudo | N/A | N/A |
+-----------------------+----------+---------+-----------+----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------+--------+------+ |
ti-chi-bot
pushed a commit
that referenced
this issue
Mar 17, 2023
fzzf678
added
affects-6.5
This bug affects the 6.5.x(LTS) versions.
may-affects-6.1
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
labels
Mar 20, 2023
fzzf678
removed
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
labels
Mar 20, 2023
This was referenced Mar 20, 2023
VelocityLight
added
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
labels
Mar 20, 2023
ti-chi-bot
added a commit
that referenced
this issue
Mar 20, 2023
ti-chi-bot
added a commit
that referenced
this issue
Mar 20, 2023
ti-chi-bot
added a commit
that referenced
this issue
Mar 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
epic/plan-cache
severity/major
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: