comphead opened a new issue, #5711: URL: https://github.com/apache/arrow-datafusion/issues/5711
### Describe the bug LIMIT clause works improperly for negative value and null ### To Reproduce - Neg value ``` ❯ select * from (select 1 a union all select 2) b order by a limit -1; +---+ | a | +---+ | 1 | | 2 | +---+ 2 rows in set. Query took 0.067 seconds. ``` The query should fail - Null ``` ❯ select * from (select 1 a union all select 2) b order by a limit null; Error during planning: Unexpected expression for LIMIT clause ``` This should work as if no limits ### Expected behavior Should work in sync with PG ### 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]
