You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: datafusion/expr/src/logical_plan/plan.rs
+13-53Lines changed: 13 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -2593,6 +2593,14 @@ impl PartialOrd for Window {
2593
2593
}
2594
2594
}
2595
2595
2596
+
/// Communicates the desired ordering of the output of a scan operation.
2597
+
/// This can be used by implementers of [`TableProvider`] to optimize the order in which data is output from the scan.
2598
+
/// It is a hint and not a requirement:
2599
+
/// - If this information is completely ignored, e.g. data is scanned randomly, the query will still be correct because a sort will be applied to the data.
2600
+
/// - Partially ordered data will also be re-sorted but this may result in optimizations like early stopping, additional data pruning, reduced memory usage during the sort, etc.
2601
+
/// - If the scan produces exactly the requested ordering, and sets it's properties to reflect this, upstream sorts may be optimized away.
0 commit comments