[fix](Nereids) column pruning under union broken unexpectedly (#26884)

introduced by PR #24060
This commit is contained in:
morrySnow
2023-11-14 14:39:32 +08:00
committed by GitHub
parent 9b3ddd13eb
commit 23e2bded1a
27 changed files with 1039 additions and 685 deletions

View File

@ -117,9 +117,6 @@ public class ColumnPruning extends DefaultPlanRewriter<PruneContext> implements
}
LogicalUnion prunedOutputUnion = pruneOutput(union, union.getOutputs(), union::pruneOutputs, context);
if (prunedOutputUnion == union) {
return union;
}
// start prune children of union
List<Slot> originOutput = union.getOutput();