You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "vbhanuchander-lang (via GitHub)" <gi...@apache.org> on 2026/09/09 00:00:53 UTC
[PR] Kafka Connect: Always convert UUID columns to java.util.UUID [iceberg]
vbhanuchander-lang opened a new pull request, #18022:
URL: https://github.com/apache/iceberg/pull/18022
Closes #17076
## Summary
`RecordConverter.convertUUID()` returned `byte[]` when `write.format.default=parquet`. After #11904, `ParquetValueWriters.uuids()` is a `PrimitiveWriter<UUID>` and does the byte conversion itself, so writes threw `ClassCastException: class [B cannot be cast to class java.util.UUID`.
The Parquet-only `byte[]` branch is removed so `convertUUID()` always returns `java.util.UUID`, matching ORC and Avro.
This is the same fix as #17079 (stale-bot closed, never reviewed). Credit to @thswlsqls for the original diagnosis and patch. The extra change here is a write-through test: the old `testUUIDConversionWithParquet` only asserted the converter's return type, so it passed on a converter that still could not write.
## Testing done
- `testUUIDConversionWithParquet` now expects the original `UUID`
- `testUUIDParquetWriteRoundTrip` appends through `Parquet.write(...)` and reads the value back
- `./gradlew :iceberg-kafka-connect:iceberg-kafka-connect:test --tests org.apache.iceberg.connect.data.TestRecordConverter` — BUILD SUCCESSFUL
Made with [Cursor](https://cursor.com)
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Kafka Connect: Always convert UUID columns to java.util.UUID [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #18022:
URL: https://github.com/apache/iceberg/pull/18022#issuecomment-6071769973
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Kafka Connect: Always convert UUID columns to java.util.UUID [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #18022: Kafka Connect: Always convert UUID columns to java.util.UUID
URL: https://github.com/apache/iceberg/pull/18022
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Kafka Connect: Always convert UUID columns to java.util.UUID [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #18022:
URL: https://github.com/apache/iceberg/pull/18022#issuecomment-6227294930
This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any 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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org