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
Unrecognized transform names fail parsing instead of becoming Transform::Unknown #2789
The V3 spec requires: "All v3 readers are required to read tables with unknown transforms, ignoring them."
FromStr for Transform returns an error for any unrecognized transform name — only the literal string "unknown" maps to Transform::Unknown — so loading a table whose partition spec or sort order uses a transform iceberg-rust does not know fails entirely. Names sharing a prefix with known transforms (e.g. bucketv2[4]) also fail. Additionally, Transform::Unknown does not retain the original name and displays as "unknown", so rewriting metadata through the builder would corrupt the transform name.
For comparison, Java's Transforms.fromString falls back to UnknownTransform, which preserves the original string, and PyIceberg implemented the same behavior in apache/iceberg-python#3630.
Loading table metadata containing such a transform fails the same way.
Expected behavior
Unrecognized transform names parse as an unknown transform that preserves the original name, tables containing them load and scan (with no partition pruning on those fields), and the name round-trips through serialization. A fix likely means Transform::Unknown(String) (a breaking enum change) plus a parse fallback — noting the interaction with #2474, which is currently tightening the same parser to reject malformed parameters of known transforms.
Willingness to contribute
I would be willing to contribute a fix for this bug with guidance from the Iceberg community
Activity