morrySnow commented on code in PR #53918:
URL: https://github.com/apache/doris/pull/53918#discussion_r2250767967
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/load/NereidsDataDescription.java:
##########
@@ -1167,7 +1168,14 @@ public DataDescription toDataDescription(ConnectContext
ctx) throws AnalysisExce
if (this.columnMappingList != null &&
!this.columnMappingList.isEmpty()) {
for (Expression expression : this.columnMappingList) {
if (expression != null) {
-
legacyColumnMappingList.add(PlanUtils.translateToLegacyExpr(expression, null,
ctx));
+ if (expression instanceof EqualTo) {
+ Expr left = PlanUtils.translateToLegacyExpr(((EqualTo)
expression).left(), null, ctx);
+ Expr right =
PlanUtils.translateToLegacyExpr(((EqualTo) expression).right(), null, ctx);
+ legacyColumnMappingList.add(new
BinaryPredicate(BinaryPredicate.Operator.EQ, left, right));
Review Comment:
need to comment to explain where do cast right to left' datatype
--
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]