zhangyue19921010 opened a new pull request, #11389: URL: https://github.com/apache/paimon/pull/11389
### Purpose A map with arrays in both its key and value, such as `MAP<ARRAY<INT> NOT NULL, ARRAY<INT>>`, can commit successfully but publish duplicate Iceberg field IDs. Iceberg then cannot load the table. Validate the actual emitted field IDs before accepting a schema or publishing a commit. The check also covers enabling the mirror, historical schemas and commit retries. Existing Paimon tables remain readable and can disable the mirror to continue writing; field-ID allocation is unchanged. Fixes #11388 ### Tests `IcebergFieldIdValidationTest` covers all publication storage types, schema changes, historical schemas, dynamic enablement, legacy-table reads, pre-commit/retry rejection and disabling publication. Seven of its eight cases fail on unchanged current production code; the valid nested-type control passes. A separate real-table probe confirms the Iceberg duplicate-ID failure. On JDK 11, all 131 focused tests passed, with no failures or skips, using the normal Maven profile (including checkstyle, Spotless and enforcer). The root RAT check and documentation build, including both REST OpenAPI checks, also passed. -- 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]
