Dandandan commented on code in PR #13874:
URL: https://github.com/apache/datafusion/pull/13874#discussion_r1895051122


##########
datafusion/core/src/dataframe/parquet.rs:
##########
@@ -74,8 +74,16 @@ impl DataFrame {
 
         let file_type = format_as_file_type(format);
 
+        let plan = if options.sort_by.is_empty() {
+            self.plan
+        } else {
+            LogicalPlanBuilder::from(self.plan)
+                .sort(options.sort_by)?
+                .build()?
+        };
+

Review Comment:
   Yes I mean that after this PR we seem we don't communicate "we are sorted" 
yet, which is I think would support usecases such as in the issue from 
@TheBuilderJR (write data sorted on a column, making following read query with 
`order by` on the same column 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]

Reply via email to