Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public void createPlanFragments(StatementBase statement, Analyzer analyzer, TQue
exprs, rootFragment.getPlanRoot().getOutputSmap(), analyzer, true);
rootFragment.setOutputExprs(resExprs);
} else {
List<Expr> resExprs = Expr.substituteList(queryStmt.getBaseTblResultExprs(),
List<Expr> resExprs = Expr.substituteList(queryStmt.getResultExprs(),
rootFragment.getPlanRoot().getOutputSmap(), analyzer, false);
rootFragment.setOutputExprs(resExprs);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,8 @@ private PlanNode createInlineViewPlan(Analyzer analyzer, InlineViewRef inlineVie
}
unionNode.setTblRefIds(Lists.newArrayList(inlineViewRef.getId()));
unionNode.addConstExprList(selectStmt.getBaseTblResultExprs());
//set outputSmap to substitute literal in outputExpr
unionNode.setOutputSmap(inlineViewRef.getSmap());
unionNode.init(analyzer);
return unionNode;
}
Expand Down