Skip to content

[Bug]: insert panic runtime error: index out of range [1] with length 1 #24281

Closed

Description

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

3.0-dev

Commit ID

6a0394c

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

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;

Additional information

No response

Activity

  1. ghost added this to the MO-202605 milestone on May 6, 2026
  2. ghost added
    kind/bug
    on May 6, 2026
  3. ghost added
    severity/s0
    on May 6, 2026
  4. ghost added theissue type on May 6, 2026
  5. added 6 commits that reference this issue on May 6, 2026
    49bd398
    34dc3d9
    a940836
    6adbd85
    37557ab
    45c4bb6
  6. jiangxinmeng1 commented on May 8, 2026

    @jiangxinmeng1
    Contributor

    fixed by #24283 #24284

  7. ghost closed this as completedon May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugseverity/s0

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions