mustafasrepo commented on code in PR #9790: URL: https://github.com/apache/arrow-datafusion/pull/9790#discussion_r1541244648
########## datafusion/sqllogictest/test_files/select.slt: ########## @@ -550,9 +550,16 @@ select * from (select 1 a union all select 2) b order by a limit 1; 1 # select limit clause invalid -statement error DataFusion error: Error during planning: LIMIT must not be negative +statement error DataFusion error: Error during planning: LIMIT must be >= 0, '\-1' was provided\. select * from (select 1 a union all select 2) b order by a limit -1; +# select limit with basic arithmetic +query I +select * from (select 1 a union all select 2) b order by a limit 1+1; +---- +1 +2 + Review Comment: Sure, added. -- 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]
