This is an automated email from the ASF dual-hosted git repository.

starocean999 pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 8e9a80fd2f9 [fix](planner)should return outputTupleDesc's id instead 
of tupleIds if outputTupleDesc is set in Plan Node (#30518)
8e9a80fd2f9 is described below

commit 8e9a80fd2f9c6abb5ad4693fc847dd5eeda2edfa
Author: starocean999 <[email protected]>
AuthorDate: Tue Jan 30 17:30:10 2024 +0800

    [fix](planner)should return outputTupleDesc's id instead of tupleIds if 
outputTupleDesc is set in Plan Node (#30518)
---
 fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java 
b/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java
index 8dcc8043b44..830421d0712 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/PlanNode.java
@@ -383,6 +383,9 @@ public abstract class PlanNode extends TreeNode<PlanNode> 
implements PlanStats {
     }
 
     public List<TupleId> getOutputTupleIds() {
+        if (outputTupleDesc != null) {
+            return Lists.newArrayList(outputTupleDesc.getId());
+        }
         return tupleIds;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to