geoffreyclaude commented on code in PR #26242:
URL: https://github.com/apache/datafusion/pull/26242#discussion_r4292520873


##########
datafusion/physical-plan/src/sorts/sort.rs:
##########
@@ -793,22 +927,21 @@ impl ExternalSorter {
             .map(|_| RecordBatchMemoryCounter::new())
     }
 
-    /// Sorts each run into its own stream, splitting `self.reservation` 
between
-    /// them.
+    /// Calculates each run's reservation size and reserves any shared input.

Review Comment:
   Done in 21fd217250f14440e810aa0a5abcddc5c09b8030. Both cases are now 
explicit. When sharing is detected, the common budget covers all input buffers 
once, including buffers private to one run.



-- 
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