comphead commented on code in PR #13680: URL: https://github.com/apache/datafusion/pull/13680#discussion_r1899184898
########## datafusion/physical-plan/src/joins/sort_merge_join.rs: ########## @@ -1920,6 +1939,10 @@ impl SortMergeJoinStream { let output_column_indices = (0..left_columns_length).collect::<Vec<_>>(); filtered_record_batch = filtered_record_batch.project(&output_column_indices)?; + } else if matches!(self.join_type, JoinType::RightAnti) { + let output_column_indices = (0..right_columns_length).collect::<Vec<_>>(); Review Comment: I think we can factor out this part into separate method -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org