You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
use test;
drop table t;
create table t(
c_int int(11)
) PARTITION BY RANGE COLUMNS(c_int) (
PARTITION `p0` VALUES LESS THAN (2),
PARTITION `p1` VALUES LESS THAN (4),
PARTITION `p2` VALUES LESS THAN (6),
PARTITION `p3` VALUES LESS THAN (8),
PARTITION `p4` VALUES LESS THAN (10),
PARTITION `p5` VALUES LESS THAN (20),
PARTITION `p6` VALUES LESS THAN (50),
PARTITION `p7` VALUES LESS THAN (1000000000)
);
begin;
insert into t values(38);
select /*+ hash_join(t) */ t.c_int from t , t as t1 where
t.c_int = t1.c_int for update;
rollback;
2. What did you expect to see? (Required)
+-------+
| c_int |
+-------+
| 38 |
+-------+
3. What did you see instead (Required)
ERROR 1105 (HY000): runtime error: index out of range [2] with length 2
Stack:
[err="runtime error: index out of range [2] with length 2
github.com/pingcap/tidb/executor.recoveryProjection
/home/wshwsh12/project/tidb/executor/projection.go:452
github.com/pingcap/tidb/executor.(*projectionInputFetcher).run.func1
/home/wshwsh12/project/tidb/executor/projection.go:356
runtime.gopanic
/usr/lib/go/src/runtime/panic.go:965
runtime.goPanicIndex
/usr/lib/go/src/runtime/panic.go:88
github.com/pingcap/tidb/util/chunk.MutRow.SetDatum
/home/wshwsh12/project/tidb/util/chunk/mutrow.go:287
github.com/pingcap/tidb/util/chunk.MutRow.SetDatums
/home/wshwsh12/project/tidb/util/chunk/mutrow.go:281
github.com/pingcap/tidb/table/tables.(*partitionedTable).locateRangeColumnPartition.func1
/home/wshwsh12/project/tidb/table/tables/partition.go:926
sort.Search
/usr/lib/go/src/sort/search.go:66
github.com/pingcap/tidb/table/tables.(*partitionedTable).locateRangeColumnPartition
/home/wshwsh12/project/tidb/table/tables/partition.go:925
github.com/pingcap/tidb/table/tables.(*partitionedTable).locatePartition
/home/wshwsh12/project/tidb/table/tables/partition.go:906
github.com/pingcap/tidb/table/tables.(*partitionedTable).GetPartitionByRow
/home/wshwsh12/project/tidb/table/tables/partition.go:1077
github.com/pingcap/tidb/executor.(*SelectLockExec).Next
/home/wshwsh12/project/tidb/executor/executor.go:939
github.com/pingcap/tidb/executor.Next
/home/wshwsh12/project/tidb/executor/executor.go:286
github.com/pingcap/tidb/executor.(*projectionInputFetcher).run
/home/wshwsh12/project/tidb/executor/projection.go:380
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1371"]
4. What is your TiDB version? (Required)
master, 5.0, 4.0
The text was updated successfully, but these errors were encountered:
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)
ERROR 1105 (HY000): runtime error: index out of range [2] with length 2
Stack:
4. What is your TiDB version? (Required)
master, 5.0, 4.0
The text was updated successfully, but these errors were encountered: