zhangyue19921010 opened a new issue, #11388: URL: https://github.com/apache/paimon/issues/11388
### Search before asking - [x] I searched the existing issues and pull requests for this field-ID collision. ### Paimon version master, 6a9e258775f0e43431c48b8fb22469b1b02c8ca5 ### Compute Engine Java API, ordinary append table; Iceberg 1.6.1 generic reader. ### Minimal reproduce step 1. Create an append table with an Avro column `m` of type `MAP<ARRAY<INT> NOT NULL, ARRAY<INT>>` and `metadata.iceberg.storage=table-location`. 2. Write a row whose map contains the entry `[1, 2] -> [3, 4]` and commit it through Paimon. 3. Load the published table through Iceberg's `HadoopTables` or `HadoopCatalog`. The Paimon write succeeds, but Iceberg rejects the schema with `Multiple entries with same key: 536870913=m.value.element and 536870913=m.key.element` when `m` has field ID 0. Both nested array elements receive the same synthetic ID. ### What doesn't meet your expectations? A schema that cannot be published should be rejected before schema or snapshot publication. The same problem can be introduced by adding a column or enabling Iceberg metadata on a table with an affected historical schema. The proposed fix validates the IDs in the emitted Iceberg schema, including collection fields and schema history. It preserves existing field-ID allocation. Existing tables remain readable through Paimon, and disabling Iceberg metadata allows writes to continue. ### Anything else? Changing only Iceberg's synthetic IDs would risk disagreeing with IDs in existing Parquet files. This fix rejects the currently unpublishable shape; it does not add a new field-ID format. The zero-based versus one-based IDs discussed in #9347 are a separate issue. ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- 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]
