gurmeetsaran-ant opened a new issue, #15344:
URL: https://github.com/apache/iceberg/issues/15344

   ### Apache Iceberg version
   
   1.10.1 (latest release)
   
   ### Query engine
   
   Kafka Connect
   
   ### Please describe the bug 🐞
   
    When using the Confluent Avro converter 
(io.confluent.connect.avro.AvroConverter) with Schema Registry, Avro fields 
with logical type timestamp-millis are deserialized as
     java.util.Date objects. However, RecordConverter.convertLong() only 
handles Number and String, causing an IllegalArgumentException when processing 
these timestamp fields.
   
     This prevents both record insertion and auto-table-creation, since the 
converter crash occurs before the table can be created via the REST catalog.
   
   ```
     Stack trace:
   
     java.lang.IllegalArgumentException: Cannot convert to long: java.util.Date
         at 
org.apache.iceberg.connect.data.RecordConverter.convertLong(RecordConverter.java:327)
         at 
org.apache.iceberg.connect.data.RecordConverter.convertValue(RecordConverter.java:247)
         at 
org.apache.iceberg.connect.data.RecordConverter.convertStructValue(RecordConverter.java:227)
         at 
org.apache.iceberg.connect.data.RecordConverter.convert(RecordConverter.java:111)
   ```
   
   ### Willingness to contribute
   
   - [x] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to