Skip to content

Invalid GROUPING SETS caused panic #18974

@2010YOUY01

Description

@2010YOUY01

Describe the bug

See the reproducer, datafusion-cli is compiled from the latest commit (5258352)

DataFusion CLI v51.0.0
> select sum(v1)
from generate_series(10) as t1(v1)
group by grouping sets (());

thread 'main' (34868929) panicked at /Users/yongting/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-schema-57.0.0/src/schema.rs:375:10:
index out of bounds: the len is 1 but the index is 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The expected behavior should be returning a SQL error.

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions