matrixorigin / matrixorigin/matrixone

[Bug]: internal error: panic runtime error: index out of range [2] with length 2 when creating partition table by range columns

Open
#18,752 0 comments 0 reactions 1 assignee Claimed by @ck89119 View on GitHub
area/partition deferred kind/bug
Dominant language
Go
Stars
1.9k
Forks
311
Avg merge
1d 3h
Merged PRs (30d)
768

Description

### Is there an existing issue for the same bug?

- [X] I have checked the existing issues.

### Branch Name

main

### Commit ID

b2d8e4aefb0d7b3b3d7deb19a772c6bbfa973a9f

### Other Environment Information

```Markdown
- Hardware parameters:
- OS type:
- Others:
```

### Actual Behavior

mysql> create table t1 (a int, b int)
-> partition by range columns(a,b)
-> (partition p0 values less than (1,1,1));
ERROR 20101 (HY000): internal error: panic runtime error: index out of range [2] with length 2:
runtime.goPanicIndex
/Users/sudong/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.0.darwin-arm64/src/runtime/panic.go:115
github.com/matrixorigin/matrixone/pkg/sql/plan.checkRangeColumnsTypeAndValuesMatch
/Users/sudong/Program/MatrixOrigin/matrixone/pkg/sql/plan/partition_util.go:390
github.com/matrixorigin/matrixone/pkg/sql/plan.buildRangePartitionItem
/Users/sudong/Program/MatrixOrigin/matrixone/pkg/sql/plan/partition_util.go:3

### Expected Behavior

_No response_

### Steps to Reproduce

```Markdown
create table t1 (a int, b int)
partition by range columns(a,b)
(partition p0 values less than (1,1,1));
```

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.