This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit d6f300ec62fed25f6ff931e5036084d52a9fdc37 Author: morrySnow <101034200+morrys...@users.noreply.github.com> AuthorDate: Sat May 11 10:38:12 2024 +0800 [fix](Nereids) empty set handle in fe should use result output (#34676) --- fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java index 99aa6ed73a1..6f65ee9538c 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java @@ -570,8 +570,7 @@ public class NereidsPlanner extends Planner { return Optional.of(resultSet); } else if (child instanceof PhysicalEmptyRelation) { List<Column> columns = Lists.newArrayList(); - PhysicalEmptyRelation physicalEmptyRelation = (PhysicalEmptyRelation) physicalPlan.child(0); - for (int i = 0; i < physicalEmptyRelation.getProjects().size(); i++) { + for (int i = 0; i < physicalPlan.getOutput().size(); i++) { NamedExpression output = physicalPlan.getOutput().get(i); columns.add(new Column(output.getName(), output.getDataType().toCatalogDataType())); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org