comphead commented on code in PR #10304:
URL: https://github.com/apache/datafusion/pull/10304#discussion_r1594814388
##########
datafusion/physical-plan/src/joins/sort_merge_join.rs:
##########
@@ -1195,7 +1205,40 @@ impl SMJStream {
.into_array(filter_batch.num_rows())?;
// The selection mask of the filter
- let mask =
datafusion_common::cast::as_boolean_array(&filter_result)?;
+ let mut mask =
+
datafusion_common::cast::as_boolean_array(&filter_result)?;
+ // for LeftSemi Join the filter mask should be calculated
in its own way:
+ // if we find at least one matching row for specific
streaming key/filter we dont need to check others for the same key/filter
+ let mut maybe_left_semi_mask: Option<BooleanArray> = None;
Review Comment:
I will add a unit test for left_semi_mask calculation
--
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]