[fix](Nereids) LogicalEmptyRelation type is wrong (#35382)

This commit is contained in:
morrySnow
2024-05-27 09:56:52 +08:00
committed by yiguolei
parent f99b2f0f82
commit a82c6e869e

View File

@ -51,7 +51,7 @@ public class LogicalEmptyRelation extends LogicalRelation
public LogicalEmptyRelation(RelationId relationId, List<? extends NamedExpression> projects,
Optional<GroupExpression> groupExpression, Optional<LogicalProperties> logicalProperties) {
super(relationId, PlanType.LOGICAL_ONE_ROW_RELATION, groupExpression, logicalProperties);
super(relationId, PlanType.LOGICAL_EMPTY_RELATION, groupExpression, logicalProperties);
this.projects = ImmutableList.copyOf(Objects.requireNonNull(projects, "projects can not be null"));
}