You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
arrow_schema_to_schema fails to convert Arrow fields with UUID extension to Iceberg UUID #2929
Arrow supports a UUID extension type. When calling arrow_schema_to_schema, this extension is ignored. This adds friction when using UUID fields with Iceberg.
I propose that arrow_schema_to_schema takes the UUID extension into account, and when present, converts items to the Iceberg UUID type.
This adds friction because in practice we often need both Arrow and Iceberg schemas for fields. Which means either defining the fields twice by hand, or adding a wrapper around arrow_schema_to_schema to fixup the conversion (this is what I have had to do in my own work).
To Reproduce
Here is a test for crates/iceberg/src/arrow/schema.rs which recreates the behaviour I would expect:
Optional -- If a field has an Arrow DataType which is notDataType::FixedSizeBinary(16), but does have the UUID metadata set, then it should raise an error.
One question I have however is I believe the Iceberg UUID type is added in the V3 spec, and arrow_schema_to_schema has no awareness of the spec in use. If someone were using V2 tables, then they wouldn't want the conversion to Iceberg UUID, and would instead want it kept as FixedSizeBinary(16).
Activity
JosephLenton commentedon Jul 30, 2026
I can code up a PR for this if there is interest.
One question I have however is I believe the Iceberg UUID type is added in the V3 spec, and
arrow_schema_to_schemahas no awareness of the spec in use. If someone were using V2 tables, then they wouldn't want the conversion to Iceberg UUID, and would instead want it kept asFixedSizeBinary(16).Is this a concern, or something we care about?