This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 934d7bd9872 [fix](Nereids) empty set handle in fe should use result
output (#34676)
934d7bd9872 is described below
commit 934d7bd987232cdee7e5bdeca264694a87cea044
Author: morrySnow <[email protected]>
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 2798389f6fb..ef5f068012a 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
@@ -579,8 +579,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: [email protected]
For additional commands, e-mail: [email protected]