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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]