This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch dev-1.1.2 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 37e5ee6459318dc63ba63f3b6ed6fe03aaa0e1a0 Author: yiguolei <yiguo...@gmail.com> AuthorDate: Thu Aug 4 10:59:11 2022 +0800 [bugfix](dateliteral) 1.1.2 not use joda so some code should be modified --- .../src/main/java/org/apache/doris/analysis/DateLiteral.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/DateLiteral.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/DateLiteral.java index 2e84db246a..10a2cc6a85 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/analysis/DateLiteral.java +++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/DateLiteral.java @@ -235,10 +235,10 @@ public class DateLiteral extends LiteralExpr { this.day = dateTime.getDayOfMonth(); this.type = type; if (type.equals(Type.DATETIME)) { - this.hour = dateTime.getHour(); - this.minute = dateTime.getMinute(); - this.second = dateTime.getSecond(); - this.microsecond = dateTime.get(ChronoField.MICRO_OF_SECOND); + this.hour = dateTime.getHourOfDay(); + this.minute = dateTime.getMinuteOfHour(); + this.second = dateTime.getSecondOfMinute(); + this.microsecond = 0; } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org