Skip to content

Commit cb881c7

Browse files
committed
update comments
1 parent 2f132c4 commit cb881c7

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

‎datafusion/physical-plan/src/joins/sort_merge_join/materializing_stream.rs‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -613,24 +613,7 @@ impl MaterializingSortMergeJoinStream {
613613
///
614614
/// Both inputs arrive sorted on the join keys. The streamed side is
615615
/// consumed one row at a time; the buffered side one key *group* (all
616-
/// contiguous rows sharing a key) at a time:
617-
///
618-
/// ```text
619-
/// 1. load the first streamed row and the first buffered key group
620-
/// 2. while either input still has rows:
621-
/// 3. compare the join keys at both cursors
622-
/// 3a. Less → the streamed row can never match:
623-
/// null-join it (outer joins), advance streamed
624-
/// 3b. Greater → the buffered group can never match again:
625-
/// null-join it if nothing matched it (FULL join),
626-
/// advance to the next buffered group
627-
/// 3c. Equal → pair the streamed row with the whole group,
628-
/// advance streamed (the group stays — the next
629-
/// streamed row may share its key)
630-
/// (materialize ("freeze") pairs once batch_size accumulate)
631-
/// 4. emit completed output batches
632-
/// 5. flush everything that remains
633-
/// ```
616+
/// contiguous rows sharing a key) at a time
634617
async fn join(
635618
&mut self,
636619
emitter: &mut TryEmitter<RecordBatch, DataFusionError>,

0 commit comments

Comments
 (0)