mbutrovich commented on PR #2307: URL: https://github.com/apache/iceberg-rust/pull/2307#issuecomment-4171494758
Updated to iterate `root_schema().get_fields()` directly, mirroring Java's `fileSchema.getFields()` loop. For primitives we map ordinal -> leaf index; for groups we advance the leaf counter using `get_column_root_idx` to skip past their leaves. We can't do an exact 1:1 with Java because Java's `addFallbackIds` just stamps IDs onto the Parquet `MessageType` and lets the Parquet reader handle column resolution later. Here we need to produce a `field_id -> leaf_column_index` map eagerly since arrow-rs needs leaf indices for projection. So the structure mirrors Java but the output is what our reader pipeline consumes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
