Skip to content

[Bug] Insert into with select constants failed  #8264

@morningman

Description

@morningman

Search before asking

  • I had searched in the issues and found no similar issues.

Version

trunk

What's Wrong?

Unexpected exception: Index 0 out of bounds for length 0

What You Expected?

Works well

How to Reproduce?

CREATE TABLE `decimal_tb` (
  `k1` decimal(1, 0) NULL COMMENT "",
  `v1` decimal(1, 0) SUM NULL COMMENT "",
  `v2` decimal(1, 0) MAX NULL COMMENT "",
  `v3` decimal(1, 0) MIN NULL COMMENT "",
  `v4` decimal(1, 0) REPLACE NULL COMMENT ""
) ENGINE=OLAP
AGGREGATE KEY(`k1`)
COMMENT "OLAP"
DISTRIBUTED BY HASH(`k1`) BUCKETS 15
PROPERTIES (
"replication_allocation" = "tag.location.default: 1",
"in_memory" = "false",
"storage_format" = "V2"
);

insert into decimal_tb  select 1, 10, 1, 1, 1;

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/insertkind/fixCategorizes issue or PR as related to a bug.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions