slachiewicz opened a new issue, #2686: URL: https://github.com/apache/iceberg-go/issues/2686
A Parquet data file that has field IDs on some fields and not others is read inconsistently: - With IDs on every top-level column but none on a list element or a map key or value, a projection that includes the list or map fails with `cannot convert element ... missing field_id`. - With a top-level column that has no ID, the projection is resolved through `schema.name-mapping.default` once it includes that column, although the other columns have IDs. The scan then fails if the mapping does not name them, or fills the ID-less column by name if it does. apache/iceberg#19037 clarifies Column Projection: if a file has a field ID at any depth, readers use the stored IDs only, and treat fields without IDs, lists missing an element ID and maps missing a key or value ID as absent. The name mapping applies only to files with no field IDs. Java's `ParquetSchemaUtil.hasIds` already decides per file. The [dev list thread](https://lists.apache.org/thread/tct2yp45ytsb6dqw1tq7b8gnfnp7jndo) has the background. Reference table: apache/iceberg-verification#27 (`v2/partial-field-ids-parquet-data`). I have a branch that implements this for scans and equality deletes and will open it as a draft, to be finished once #19037 merges. -- 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]
