sandyfog commented on code in PR #7886:
URL: https://github.com/apache/hudi/pull/7886#discussion_r1118011841


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/util/AvroToRowDataConverters.java:
##########
@@ -233,7 +234,9 @@ private static AvroToRowDataConverter 
createTimestampConverter(int precision) {
               "Unexpected object type for TIMESTAMP logical type. Received: " 
+ avroObject);
         }
       }
-      return TimestampData.fromInstant(instant);
+      Timestamp timestamp = new Timestamp(instant.toEpochMilli());
+      timestamp.setNanos(instant.getNano());
+      return TimestampData.fromTimestamp(timestamp);

Review Comment:
   Because RowDataToAvroConverters has used local time zone,so this should  
also use local time zone,otherwise read  mor  avro log is  8 hours ahead of the 
time .



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