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


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/DateTrunc.java:
##########
@@ -50,9 +50,17 @@ public class DateTrunc extends ScalarFunction
             
FunctionSignature.ret(DateTimeType.INSTANCE).args(DateTimeType.INSTANCE, 
VarcharType.SYSTEM_DEFAULT),
             FunctionSignature.ret(DateV2Type.INSTANCE)
                     .args(DateV2Type.INSTANCE, VarcharType.SYSTEM_DEFAULT),
-            FunctionSignature.ret(DateType.INSTANCE).args(DateType.INSTANCE, 
VarcharType.SYSTEM_DEFAULT)
+            FunctionSignature.ret(DateType.INSTANCE).args(DateType.INSTANCE, 
VarcharType.SYSTEM_DEFAULT),
+            FunctionSignature.ret(DateTimeV2Type.SYSTEM_DEFAULT)
+                    .args(VarcharType.SYSTEM_DEFAULT, 
DateTimeV2Type.SYSTEM_DEFAULT),
+            
FunctionSignature.ret(DateTimeType.INSTANCE).args(VarcharType.SYSTEM_DEFAULT, 
DateTimeType.INSTANCE),
+            
FunctionSignature.ret(DateV2Type.INSTANCE).args(VarcharType.SYSTEM_DEFAULT, 
DateV2Type.INSTANCE),
+            
FunctionSignature.ret(DateType.INSTANCE).args(VarcharType.SYSTEM_DEFAULT, 
DateType.INSTANCE)

Review Comment:
   please add function impl in fe too
   ```
   
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/executable/DateTimeExtractAndTransform.java
   ```



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