diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalUnion.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalUnion.java index acd07536983bb3..89cd874c8ab082 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalUnion.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/logical/LogicalUnion.java @@ -42,7 +42,6 @@ import java.util.Objects; import java.util.Optional; import java.util.Set; -import java.util.stream.Collectors; /** * Logical Union. @@ -214,15 +213,6 @@ public boolean hasUnboundExpression() { return super.hasUnboundExpression(); } - @Override - public List computeOutput() { - if (children.isEmpty()) { - return constantExprsList.get(0).stream().map(NamedExpression::toSlot).collect(Collectors.toList()); - } else { - return super.computeOutput(); - } - } - private List mapSlotToIndex(Plan plan, List> equalSlotsList) { Map slotToIndex = new HashMap<>(); for (int i = 0; i < plan.getOutput().size(); i++) {