alamb commented on code in PR #5723:
URL: https://github.com/apache/arrow-datafusion/pull/5723#discussion_r1147981211
##########
datafusion/core/tests/sqllogictests/test_files/select.slt:
##########
@@ -105,4 +105,24 @@ select
----
false true false true true false false true false true true false true true
false false true
+# select limit clause
Review Comment:
I double checked the results match postgres:
```sql
postgres=# select * from (select 1 a union all select 2) b order by a limit
1;
a
---
1
(1 row)
postgres=# select * from (select 1 a union all select 2) b order by a limit
-1;
ERROR: LIMIT must not be negative
postgres=# select * from (select 1 a union all select 2) b order by a limit
null;
a
---
1
2
(2 rows)
postgres=# select * from (select 1 a union all select 2) b order by a limit
0;
a
---
(0 rows)
```
👍
--
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]