Fokko commented on code in PR #14151: URL: https://github.com/apache/iceberg/pull/14151#discussion_r2369301710
########## core/src/main/java/org/apache/iceberg/TableMetadata.java: ########## @@ -1616,7 +1610,7 @@ && changes(MetadataUpdate.AddSchema.class) return newSchemaId; } - this.lastColumnId = newLastColumnId; + this.lastColumnId = Math.max(newLastColumnId, this.lastColumnId); Review Comment: I think this is the right approach where we handle this internally 👍 -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org