Function arrow_schema_to_schema_auto_assign_ids

Source
pub fn arrow_schema_to_schema_auto_assign_ids(schema: &Schema) -> Result<Schema>
Expand description

Convert Arrow schema to Iceberg schema with automatically assigned field IDs.

Unlike arrow_schema_to_schema, this function does not require field IDs in the Arrow schema metadata. Instead, it automatically assigns unique field IDs starting from 1, following Iceberg’s field ID assignment rules.

This is useful when converting Arrow schemas that don’t originate from Iceberg tables, such as schemas from DataFusion or other Arrow-based systems.