Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Mar 29, 2024
1 parent c804574 commit 2c4597a
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,13 @@ class CometSparkSessionExtensions
}
case other => other
}
val newPlan = transform(plan.withNewChildren(newChildren))
if (isCometNative(newPlan) || isCometBroadCastForceEnabled(conf)) {
newPlan
if (!newChildren.exists(_.isInstanceOf[BroadcastExchangeExec])) {
val newPlan = transform(plan.withNewChildren(newChildren))
if (isCometNative(newPlan) || isCometBroadCastForceEnabled(conf)) {
newPlan
} else {
plan
}
} else {
plan
}
Expand Down

0 comments on commit 2c4597a

Please sign in to comment.