koarz commented on code in PR #47319:
URL: https://github.com/apache/doris/pull/47319#discussion_r2111212745


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/types/TimeV2Type.java:
##########
@@ -49,6 +51,9 @@ public Type toCatalogDataType() {
      * create TimeV2Type from scale
      */
     public static TimeV2Type of(int scale) {
+        if (scale > MAX_SCALE || scale < 0) {

Review Comment:
   the constructor is `private TimeV2Type(int scale)` private



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