pub fn parse_legacy_and_upgrade(
metadata_bytes: &[u8],
num_rows: i64,
) -> Result<ParquetMetaData, Error>Expand description
Parse legacy metadata (Arrow 56.0) and convert to new format (Arrow 57.0)
This function handles the migration from Arrow 56.0 to 57.0 by:
- Parsing legacy metadata using the deprecated thrift API
- Injecting the required
num_rowsfield if missing or zero - Re-serializing with thrift to produce corrected bytes
- Parsing with Arrow 57.0’s standard parser