Anurag-S1ngh opened a new pull request, #19250: URL: https://github.com/apache/iceberg/pull/19250
## Summary - `RecordConverter.convertUUID` returned a 16-byte value when the target format was Parquet. The current Parquet UUID writer expects a `java.util.UUID`, so the write failed with `ClassCastException: class [B cannot be cast to class java.util.UUID`. - Return the `UUID` for every file format, matching the Avro and ORC writers. ## Changes - `RecordConverter.convertUUID`: parse the value into a `UUID` and return it. Remove the Parquet-specific conversion and the now-unused imports. - `TestRecordConverter`: assert the converted value is the `UUID`. - `TestUnpartitionedWriter`: convert a UUID column and write it to a Parquet file through `RecordConverter` and the task writer. ## Testing - `./gradlew ":iceberg-kafka-connect:iceberg-kafka-connect:test" --tests "org.apache.iceberg.connect.data.*"` passes. - The writer test fails with the original `ClassCastException` without the change. - `spotlessApply` run for the module. Closes #17076 -- 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]
