plan: set proper parent for newly projection-eliminated child (#4730)
This commit is contained in:
@ -72,7 +72,9 @@ func resolveExprAndReplace(origin expression.Expression, replace map[string]*exp
|
||||
func doPhysicalProjectionElimination(p PhysicalPlan) PhysicalPlan {
|
||||
children := make([]Plan, 0, len(p.Children()))
|
||||
for _, child := range p.Children() {
|
||||
children = append(children, doPhysicalProjectionElimination(child.(PhysicalPlan)))
|
||||
newChild := doPhysicalProjectionElimination(child.(PhysicalPlan))
|
||||
children = append(children, newChild)
|
||||
newChild.SetParents(p)
|
||||
}
|
||||
p.SetChildren(children...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user