### Describe the bug Found the issue when Comet tries to run a Spark query which sorts empty batch: https://github.com/apache/arrow-datafusion-comet/issues/270 ``` Arrow error: Invalid argument error: must either specify a row count or at least one column ``` ### To Reproduce _No response_ ### Expected behavior _No response_ ### Additional context _No response_