Skip to content

Commit

Permalink
Fix: Sort Merge Join Left Semi crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
comphead committed May 17, 2024
1 parent 22c61fc commit 30f28fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datafusion/physical-plan/src/joins/sort_merge_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,9 @@ impl SMJStream {
}
if matches!(self.join_type, JoinType::LeftSemi) && self.filter.is_none() {
join_streamed = !self.streamed_joined;
join_buffered = true;
// if the join filter specified there can be references to buffered columns
// so its needed to join them
join_buffered = self.filter.is_some();
}
if matches!(
self.join_type,
Expand Down

0 comments on commit 30f28fe

Please sign in to comment.