Gabriel39 commented on code in PR #21487:
URL: https://github.com/apache/doris/pull/21487#discussion_r1259097079


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/ColumnDef.java:
##########
@@ -104,14 +111,60 @@ public DefaultValue(boolean isSet, String value, String 
exprName) {
         // default "value", "[]" means empty array
         public static DefaultValue ARRAY_EMPTY_DEFAULT_VALUE = new 
DefaultValue(true, "[]");
 
+        public static DefaultValue 
currentTimeStampDefaultValueWithPrecision(Long precision) {
+            if (precision > 6 || precision < 0) {

Review Comment:
   ```suggestion
               if (precision > ScalarType.MAX_DATETIMEV2_SCALE || precision < 
0) {
   ```



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to