Skip to main content

serialize_data_files_default_spec

Function serialize_data_files_default_spec 

Source
pub fn serialize_data_files_default_spec(
    table: &Table,
    files: Vec<DataFile>,
) -> Result<Vec<SerializedDataFile>>
Expand description

Serializes files against the table’s current default partition spec, after truncating oversized column statistics. Shared by the iceberg sink writer’s commit-metadata generation and the pk-index merger’s delete-file serialization.

Only the DEFAULT-spec path is shared here; callers that must serialize each file against its own (potentially older) partition spec keep their own logic.