dor-bernstein opened a new pull request, #2956: URL: https://github.com/apache/iceberg-rust/pull/2956
## Problem When compacting (or otherwise writing metadata for) an Iceberg table that has `Timestamptz` or `TimestamptzNs` columns, the Glue catalog schema serializer returns `FeatureUnsupported`: ``` FeatureUnsupported => Conversion from Timestamptz is not supported ``` This error surfaces in `iceberg_compaction_core::compaction` at the commit phase — after all data files have already been successfully rewritten — making the entire operation fail and the rewrite work wasted. Root cause: `GlueSchemaBuilder::primitive()` in `crates/catalog/glue/src/schema.rs` has no match arms for `PrimitiveType::Timestamptz` and `PrimitiveType::TimestamptzNs`, so they fall through to an explicit `FeatureUnsupported` error. ## Fix Map `Timestamptz` → `"timestamp"` and `TimestamptzNs` → `"timestamp_ns"`, matching the behaviour of Spark's Glue catalog integration which also drops timezone information when serializing to Glue's type system (Glue has no timezone-aware timestamp type). A regression test is added covering both new mappings. ## Testing ``` cargo test -p iceberg-catalog-glue ``` -- 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]
