Skip to content

Got arrow error when sorting on empty batch #270

@viirya

Description

@viirya

Describe the bug

Found the issue while working on #250: https://github.com/apache/arrow-datafusion-comet/actions/runs/8681807652/job/23805034669?pr=250

For example, SQLWindowFunctionSuite has test failure like:

[info] - SPARK-7595: Window will cause resolve failed with self join *** FAILED *** (110 milliseconds)
[info]   org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 161.0 failed 1 times, most recent failure: Lost task 0.0 in stage 161.0 (TID 110) (7d92ed5170bf executor driver): org.apache.comet.CometNativeException: Arrow error: Invalid argument error: must either specify a row count or at least one column

There are two places that we need to fix. One is in Comet, one is in DataFusion.

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    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