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
{{ message }}
Repository navigation
[Bug]: insert panic runtime error: index out of range [1] with length 1 #24281
mysql> CREATE TABLE t (id INT, ts DATETIME);
Query OK, 0 rows affected (0.01 sec)
mysql> INSERT INTO t SELECT result, '2024-01-01' + INTERVAL (result % 365) DAY FROM generate_series(1, 10) g;
ERROR 1105 (HY000): internal error: panic runtime error: index out of range [1] with length 1:
runtime.goPanicIndex
/Users/heni/go/pkg/mod/golang.org/[email protected]/src/runtime/panic.go:115
github.com/matrixorigin/matrixone/pkg/sql/plan.resetDateFunctionArgs
/Users/heni/test-envir/3.0-dev/matrixone/pkg/sql/plan/base_binder.go:2155
github.com/matrixorigin/matrixone/pkg/sql/plan.BindFuncExprImplByPlanExpr
/Users/heni/test-envir/3.0-dev/matrixone/pkg/sql/plan/base_binder.go:1524
github.com/matrixorigi
Expected Behavior
No response
Steps to Reproduce
CREATE TABLE t (id INT, ts DATETIME);
INSERT INTO t SELECT result, '2024-01-01' + INTERVAL (result % 365) DAY FROM generate_series(1, 10) g;
Activity
fix(parser): support parenthesized expressions in INTERVAL unit syntax
fix(parser): support parenthesized expressions in INTERVAL unit syntax
fix(parser): support INTERVAL (expr) unit syntax
fix(parser): support INTERVAL (expr) unit syntax
fix(parser): support INTERVAL (expr) unit syntax
fix(parser): support INTERVAL (expr) unit syntax
jiangxinmeng1 commentedon May 8, 2026
fixed by #24283 #24284