beliefer commented on code in PR #35975:
URL: https://github.com/apache/spark/pull/35975#discussion_r849030979


##########
sql/core/src/test/resources/sql-tests/results/postgreSQL/limit.sql.out:
##########
@@ -38,6 +38,62 @@ struct<two:string,unique1:int,unique2:int,stringu1:string>
        62      633     KCAAAA
 
 
+-- !query
+SELECT '' AS three, unique1, unique2, stringu1
+               FROM onek WHERE unique1 > 100
+               ORDER BY unique1 LIMIT 3 OFFSET 20
+-- !query schema
+struct<three:string,unique1:int,unique2:int,stringu1:string>
+-- !query output
+       121     700     REAAAA
+       122     519     SEAAAA
+       123     777     TEAAAA
+
+
+-- !query
+SELECT '' AS zero, unique1, unique2, stringu1
+               FROM onek WHERE unique1 < 50
+               ORDER BY unique1 DESC LIMIT 8 OFFSET 99
+-- !query schema
+struct<zero:string,unique1:int,unique2:int,stringu1:string>
+-- !query output
+
+
+
+-- !query
+SELECT '' AS eleven, unique1, unique2, stringu1
+               FROM onek WHERE unique1 < 50
+               ORDER BY unique1 DESC LIMIT 20 OFFSET 39
+-- !query schema
+struct<eleven:string,unique1:int,unique2:int,stringu1:string>
+-- !query output
+       10      520     KAAAAA
+       9       49      JAAAAA
+       8       653     IAAAAA
+       7       647     HAAAAA
+       6       978     GAAAAA
+       5       541     FAAAAA
+       4       833     EAAAAA
+       3       431     DAAAAA
+       2       326     CAAAAA
+       1       214     BAAAAA
+       0       998     AAAAAA
+
+
+-- !query
+SELECT '' AS five, unique1, unique2, stringu1
+               FROM onek
+               ORDER BY unique1 LIMIT 5 OFFSET 900

Review Comment:
   Added into limit.sql



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to