waterWang opened a new pull request, #17690: URL: https://github.com/apache/iceberg/pull/17690
Fixes #15344 ### Problem When using Confluent Avro converter, timestamp-millis fields are deserialized as `java.util.Date` objects. `RecordConverter.convertLong()` only handles `Number` and `String`, causing `IllegalArgumentException: Cannot convert to long: java.util.Date`. ### Fix Add `Date` handling to `convertLong()` via `Date.getTime()` to extract epoch millis, matching the existing pattern used by `convertDateValue`, `convertTimeValue`, `convertOffsetDateTime`, and `convertLocalDateTime` which all handle `Date`. ### Testing - [x] Existing test suite passes locally - [x] New Date values are properly converted to long epoch millis -- 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]
