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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]