pantShrey commented on code in PR #22230:
URL: https://github.com/apache/datafusion/pull/22230#discussion_r3296743326


##########
datafusion/physical-plan/src/joins/sort_merge_join/materializing_stream.rs:
##########
@@ -997,6 +1112,7 @@ impl MaterializingSortMergeJoinStream {
                             .unwrap(); // Operation only return None if no 
batches are spilled, here we ensure that at least one batch is spilled
 
                         buffered_batch.batch = 
BufferedBatchState::Spilled(spill_file);
+                        self.spilled_batch_count += 1;

Review Comment:
   Good catch! Added a decrement in the dequeue path for batches that are 
popped while still in `Spilled` state.



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