-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The array_sort SQL function produces an error concat requires input of at least one array if an empty batch (a batch containing zero lists) is provided as input.
To Reproduce
Add the following to datafusion/sqllogictest/test_files/array.slt:
query ?
select array_sort([sum(b)]) from values where a > 100 group by b;
----
This produces:
$ cargo test --test sqllogictests array.slt
...
Running "array.slt"
External error: query failed: DataFusion error: Arrow error: Compute error: concat requires input of at least one array
[SQL] select array_sort([sum(b)]) from values where a > 100 group by b;
at test_files/array.slt:2009
Error: Execution("1 failures")
error: test failed, to rerun pass `-p datafusion-sqllogictest --test sqllogictests`
...Expected behavior
Successful test execution
Additional context
Can be reproduced in DataFusion v38 and main (59bfe77)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working