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


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -3249,6 +3245,15 @@ public Expression 
visitArithmeticBinary(ArithmeticBinaryContext ctx) {
         });
     }
 
+    private static UnboundFunction buildDateArithmetic(Expression date, 
Interval interval, String operation) {
+        if (interval.timeUnit().isCompound()) {
+            return new UnboundFunction("DATE_" + operation, 
ImmutableList.of(date, interval));
+        }

Review Comment:
   why add this branch? we have function like `year_month_add`



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