wiedld commented on code in PR #7842:
URL: https://github.com/apache/arrow-datafusion/pull/7842#discussion_r1367404217


##########
datafusion/physical-plan/src/sorts/builder.rs:
##########
@@ -42,15 +37,15 @@ pub struct BatchBuilder {
     reservation: MemoryReservation,
 
     /// The current [`BatchCursor`] for each stream
-    cursors: Vec<BatchCursor>,
+    cursors: Vec<Option<BatchCursor<C>>>,

Review Comment:
   This is indexed per stream. As such, we don't always have an ongoing cursor 
per each stream => hence the option.



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

Reply via email to