englefly commented on code in PR #46065: URL: https://github.com/apache/doris/pull/46065#discussion_r1899357128
########## fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/DateLiteral.java: ########## @@ -189,19 +189,23 @@ static Result<String, AnalysisException> normalize(String s) { if (len == 4 || len == 2) { sb.append(s, i, j); } else if (len == 3) { - if (partNumber == 0) { - String yy = s.substring(i, i + 2); - int year = Integer.parseInt(yy); - if (year >= 0 && year <= 69) { - sb.append("20"); - } else if (year >= 70 && year <= 99) { - sb.append("19"); + if (s.charAt(j) == '.') { Review Comment: why "201.01.01" is year 2020, but "201-01-01" is year 201 -- 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