File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
datafusion/core/src/physical_plan/sorts Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -291,8 +291,12 @@ impl ExternalSorter {
291291 /// Returns the final sorted output of all batches inserted via
292292 /// [`Self::insert_batch`] as a stream of [`RecordBatch`]es.
293293 ///
294- /// This may be an in memory sort/merge if all input fit into memory, or
295- /// a streaming merge from spill files on disk.
294+ /// This process could either be:
295+ ///
296+ /// 1. An in-memory sort/merge (if the input fit in memory)
297+ ///
298+ /// 2. A combined streaming merge incorporating both in-memory
299+ /// batches and data from spill files on disk.
296300 fn sort ( & mut self ) -> Result < SendableRecordBatchStream > {
297301 if self . spilled_before ( ) {
298302 let mut streams = vec ! [ ] ;
You can’t perform that action at this time.
0 commit comments