125126127128129130131132133134135
} PlanNode tempRoot = buildUnionTree(unionNode, sourceUnions); unionNode.removeAllChildren(); unionNode.addChildren(tempRoot.removeAllChildren()); } } static PlanNode buildUnionTree(PlanNode rootUnionNode, List<PlanNode> sources) {