yihua commented on code in PR #13711:
URL: https://github.com/apache/hudi/pull/13711#discussion_r2359456617


##########
hudi-common/src/main/java/org/apache/hudi/avro/processors/Parser.java:
##########
@@ -46,21 +48,19 @@ public Pair<Boolean, Object> handleStringValue(String 
value) {
 
   public static class DateParser extends Parser {
 
-    private static final long MILLI_SECONDS_PER_DAY = 86400000;
-
     @Override
     public Pair<Boolean, Object> handleNumberValue(Number value) {
-      return Pair.of(true, new java.sql.Date(value.intValue() * 
MILLI_SECONDS_PER_DAY));
+      return Pair.of(true, LocalDate.ofEpochDay(value.intValue()));

Review Comment:
   Got it, thanks for the explanation!



-- 
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]

Reply via email to