You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/06/28 14:50:26 UTC
[doris] branch branch-1.2-lts updated: [fix](planner)the resultExprs should be substituted using table function node's outputSmap (#21219)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new 264ac5a9f2 [fix](planner)the resultExprs should be substituted using table function node's outputSmap (#21219)
264ac5a9f2 is described below
commit 264ac5a9f287bbbbe10cf49d5276a9f8ba26fe7c
Author: starocean999 <40...@users.noreply.github.com>
AuthorDate: Wed Jun 28 22:50:19 2023 +0800
[fix](planner)the resultExprs should be substituted using table function node's outputSmap (#21219)
pick from master #21182
---
.../src/main/java/org/apache/doris/planner/TableFunctionNode.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/TableFunctionNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/TableFunctionNode.java
index 4c21a89e5d..7b741028ca 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/TableFunctionNode.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/TableFunctionNode.java
@@ -96,7 +96,8 @@ public class TableFunctionNode extends PlanNode {
}
Set<SlotRef> outputSlotRef = Sets.newHashSet();
// case1
- List<Expr> baseTblResultExprs = selectStmt.getResultExprs();
+ List<Expr> baseTblResultExprs = Expr.substituteList(selectStmt.getResultExprs(),
+ outputSmap, analyzer, false);
for (Expr resultExpr : baseTblResultExprs) {
// find all slotRef bound by tupleIds in resultExpr
resultExpr.getSlotRefsBoundByTupleIds(tupleIds, outputSlotRef);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org