Skip to content

Commit

Permalink
Update plan_cache.go
Browse files Browse the repository at this point in the history
  • Loading branch information
fzzf678 committed Mar 13, 2023
1 parent 22a1fc0 commit 366720c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions planner/core/plan_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,13 @@ func containShuffleOperator(p PhysicalPlan) bool {
if _, isShuffleRecv := p.(*PhysicalShuffleReceiverStub); isShuffleRecv {
return true
}
childContainTableDual := false
for _, child := range p.Children() {
childContainTableDual = childContainTableDual || containShuffleOperator(child)
if childContainTableDual {
return true
}
}
return false
}

Expand Down

0 comments on commit 366720c

Please sign in to comment.