You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/12/01 13:30:14 UTC
[GitHub] [doris] englefly commented on a diff in pull request #14730: [feature](nereids)merge proj-proj in post process
englefly commented on code in PR #14730:
URL: https://github.com/apache/doris/pull/14730#discussion_r1037109707
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/logical/MergeProjects.java:
##########
@@ -92,7 +95,7 @@ public Expression visit(Expression expr, Map<Expression, Expression> substitutio
Slot ref = ((SlotReference) expr).withQualifier(Collections.emptyList());
if (substitutionMap.containsKey(ref)) {
Alias res = (Alias) substitutionMap.get(ref);
- return res.child();
+ return new Alias(res.child(), ref.getName());
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org