alamb commented on code in PR #10309:
URL: https://github.com/apache/datafusion/pull/10309#discussion_r1586200317


##########
datafusion/sqllogictest/test_files/limit.slt:
##########
@@ -39,6 +39,26 @@ STORED AS CSV
 WITH HEADER ROW
 LOCATION '../../testing/data/csv/aggregate_test_100.csv'
 
+statement ok
+CREATE UNBOUNDED EXTERNAL TABLE data (
+    "date"   DATE,
+    "ticker" VARCHAR,
+    "time"   TIMESTAMP,
+) STORED AS CSV
+WITH ORDER ("date", "ticker", "time")
+LOCATION './a.parquet';
+
+# query
+query TT
+explain SELECT * FROM data LIMIT 10;
+----
+logical_plan
+01)Limit: skip=0, fetch=10
+02)--TableScan: data projection=[date, ticker, time], fetch=10
+physical_plan
+01)GlobalLimitExec: skip=0, fetch=10
+02)--StreamingTableExec: partition_sizes=1, projection=[date, ticker, time], 
infinite_source=true, fetch=10, output_ordering=[date@0 ASC NULLS LAST, 
ticker@1 ASC NULLS LAST, time@2 ASC NULLS LAST]

Review Comment:
   👍 



-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to