helgikrs opened a new issue, #9212: URL: https://github.com/apache/arrow-datafusion/issues/9212
### Describe the bug EnforceSorting produces an error when the sort expression is a constant. This is the error produced ``` EnforceSorting caused by Internal error: Wrong number of children. This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker ``` ### To Reproduce Ordering by a constant expression (without any column references) produces the above error, e.g., ``` DataFusion CLI v35.0.0 ❯ create table a; 0 rows in set. Query took 0.001 seconds. ❯ select * from a order by 'foo'; EnforceSorting caused by Internal error: Wrong number of children. This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker ❯ ``` ### Expected behavior No error. ### Additional context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
