You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/04/16 13:35:52 UTC

[GitHub] [incubator-doris] kangkaisen commented on a change in pull request #3336: fix cooldown timestamp bug

kangkaisen commented on a change in pull request #3336: fix cooldown timestamp bug
URL: https://github.com/apache/incubator-doris/pull/3336#discussion_r409560532
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java
 ##########
 @@ -110,7 +110,7 @@ public static DataProperty analyzeDataProperty(Map<String, String> properties, D
             } else if (!hasCooldown && key.equalsIgnoreCase(PROPERTIES_STORAGE_COLDOWN_TIME)) {
                 hasCooldown = true;
                 DateLiteral dateLiteral = new DateLiteral(value, Type.DATETIME);
-                coolDownTimeStamp = dateLiteral.getLongValue();
+                coolDownTimeStamp = dateLiteral.unixTimestamp(TimeUtils.getTimeZone());
 
 Review comment:
   Please add a UT for this bug

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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