rdblue opened a new pull request #2906: URL: https://github.com/apache/iceberg/pull/2906
This fixes partition field ID assignment for `REPLACE TABLE` operations. Table replacement calls `TableMetadata.buildReplacement` that is responsible for merging the existing table's metadata with table metadata passed to the `CREATE OR REPLACE TABLE` DDL. When the schema and partition spec are created in this path, the field IDs from the table are not known, so the spec and schema's IDs are consistent but reuse IDs that are already assigned in the table. Schema field IDs are already reassigned, but partition field IDs were conflicting up until now. This reassigns partition field IDs by first reusing existing IDs in the table and then by assigning new IDs. Addresses this comment: https://github.com/apache/iceberg/pull/2089#discussion_r567154516 Closes #2284. -- 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]
