zhuqi-lucas commented on code in PR #18817:
URL: https://github.com/apache/datafusion/pull/18817#discussion_r2554059927
##########
datafusion/sqllogictest/test_files/topk.slt:
##########
@@ -338,9 +338,7 @@ physical_plan
query TT
explain select number, letter, age from partial_sorted order by number asc
limit 3;
----
-physical_plan
-01)SortExec: TopK(fetch=3), expr=[number@0 ASC NULLS LAST],
preserve_partitioning=[false]
-02)--DataSourceExec: file_groups={1 group:
[[WORKSPACE_ROOT/datafusion/sqllogictest/test_files/scratch/topk/partial_sorted/1.parquet]]},
projection=[number, letter, age], output_ordering=[number@0 DESC, letter@1 ASC
NULLS LAST], file_type=parquet, predicate=DynamicFilter [ empty ]
Review Comment:
Reverse scan make it don't need to sort here, and it's very fast.
--
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]