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


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/Microsecond.java:
##########
@@ -50,6 +51,13 @@ public Microsecond(Expression arg) {
         super("microsecond", arg);
     }
 
+    @Override
+    public void checkLegalityBeforeTypeCoercion() {
+        if (!getArgument(0).getDataType().isDateTimeV2Type()) {

Review Comment:
   if only support datetimev2 type, remove datev2 signature is just ok



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