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


##########
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:
   No, `RowDataToAvroConverters` uses the UTC timezone.



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