Skip to content

Commit 1edf536

Browse files
committed
Restore single-branch dynamic filter collapse
1 parent 2a81385 commit 1edf536

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

datafusion/physical-plan/src/joins/hash_join/shared_bounds.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,9 @@ impl SharedBuildAccumulator {
646646
}
647647
} else if real_branches.is_empty() {
648648
lit(false)
649-
} else if num_partitions == 1 {
649+
} else if real_branches.len() == 1
650+
&& empty_partition_ids.len() + 1 == num_partitions
651+
{
650652
Arc::clone(&real_branches[0].1)
651653
} else {
652654
Arc::new(CaseExpr::try_new(

0 commit comments

Comments
 (0)