zclllyybb commented on code in PR #57234:
URL: https://github.com/apache/doris/pull/57234#discussion_r2454211520
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/util/DateUtils.java:
##########
@@ -370,8 +370,8 @@ public static LocalDateTime getTime(DateTimeFormatter
formatter, String value) {
TemporalAccessor accessor = formatter.parse(value);
return LocalDateTime.of(
getOrDefault(accessor, ChronoField.YEAR),
- getOrDefault(accessor, ChronoField.MONTH_OF_YEAR),
- getOrDefault(accessor, ChronoField.DAY_OF_MONTH),
+ getMonthOrDefault(accessor),
Review Comment:
By changing this, you actually changed the function `str_to_date`'s
behaviour of FE. you should add some regression cases to make sure the
behaviour is same of BE and FE. could use `qt_sql` and `testFoldConst` in reg.
--
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]