Skip to content

Error in min/max queries: InvalidArgumentError("number of columns(1) must match number of fields(2) in schema" #12833

@alamb

Description

@alamb

Describe the bug

In certain rare cases, Min/Max queries on string columns like this

SELECT b, max(a) FROM fuzz_table GROUP BY b

Will error like

InvalidArgumentError("number of columns(1) must match number of fields(2) in schema"

#12667

To Reproduce

Uncomment tests from the aggregation fuzzer added in #12667

        //   ArrowError(InvalidArgumentError("number of columns(1) must match number of fields(2) in schema"))
        // .add_sql("SELECT b, max(a) FROM fuzz_table GROUP BY b")
        // .add_sql("SELECT b, min(a) FROM fuzz_table GROUP BY b")

Expected behavior

Tests should pass

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions