comphead commented on code in PR #10304: URL: https://github.com/apache/datafusion/pull/10304#discussion_r1599052085
########## datafusion/physical-plan/src/joins/sort_merge_join.rs: ########## @@ -1363,6 +1380,57 @@ fn get_filter_column( filter_columns } +// Get buffered data sliece by specific batch index and for specified column indices only +#[inline(always)] +fn get_buffered_columns( + buffered_data: &BufferedData, + buffered_batch_idx: usize, + buffered_indices: &UInt64Array, +) -> Result<Vec<ArrayRef>, ArrowError> { + buffered_data.batches[buffered_batch_idx] + .batch + .columns() + .iter() + .map(|column| take(column, &buffered_indices, None)) + .collect::<Result<Vec<_>, ArrowError>>() +} + +// Calculate join filter bit mask considering join type specifics Review Comment: Will do as a few documentation also added me quite a pain -- 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