singhpk234 commented on code in PR #15027:
URL: https://github.com/apache/iceberg/pull/15027#discussion_r2680990075


##########
kafka-connect/kafka-connect/src/main/java/org/apache/iceberg/connect/data/RecordConverter.java:
##########
@@ -473,6 +474,8 @@ private OffsetDateTime convertOffsetDateTime(Object value) {
       return parseOffsetDateTime((String) value);
     } else if (value instanceof OffsetDateTime) {
       return (OffsetDateTime) value;
+    } else if (value instanceof ZonedDateTime) {
+      return (OffsetDateTime) ((ZonedDateTime) value).toOffsetDateTime();

Review Comment:
   ```suggestion
         return ((ZonedDateTime) value).toOffsetDateTime();
   ```



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

Reply via email to