morrySnow commented on code in PR #51925:
URL: https://github.com/apache/doris/pull/51925#discussion_r2156204437


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/insert/InsertUtils.java:
##########
@@ -439,6 +442,9 @@ private static Plan normalizePlanWithoutLock(LogicalPlan 
plan, TableIf table,
                             castValue = rewriteContext == null
                                     ? castValue
                                     : FoldConstantRuleOnFE.evaluate(castValue, 
rewriteContext);
+                            if (!(castValue instanceof NamedExpression)) {
+                                castValue = new Alias(castValue);

Review Comment:
   we should add alias in castValue's `else` branch



-- 
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]

Reply via email to