pub fn get_metadata_field(field_id: i32) -> Result<&'static NestedFieldRef>Expand description
Returns the Iceberg field definition for a metadata field ID.
Note: This function does not support _partition (field ID i32::MAX - 5) because
it’s a struct field that requires dynamic partition fields. Use partition_field()
instead to create the _partition field with the appropriate partition fields.
§Arguments
field_id- The metadata field ID
§Returns
The Iceberg field definition for the metadata column, or an error if not a metadata field