gaborkaszab commented on PR #6369:
URL: https://github.com/apache/iceberg/pull/6369#issuecomment-1341585151

   I also checked if PartitionSpec.hasSequentialIds() could cause any issues 
with existing tables. The first use that you linked seems to be the case when 
we re-write the table metadata and it checks the new partition field ID. This 
should be fine in my opinion.
   However, the other use-case here 
(https://github.com/apache/iceberg/blob/6697129a314d98cb793601495f7ebb2ae000b40a/core/src/main/java/org/apache/iceberg/TableMetadata.java#L1409-L1414)
 seems suspicious. First I thought this is the case when we load metadata from 
JSON, but then it seems that TableMetadata.addPartitionSpecInternal() is used 
for [adding new partition specs to a 
table](https://github.com/apache/iceberg/blob/6697129a314d98cb793601495f7ebb2ae000b40a/core/src/main/java/org/apache/iceberg/MetadataUpdate.java#L122),
 that also seems okay with the new start ID.
   
   I can take another look tomorrow (it's kind of late now to think :) )


-- 
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

Reply via email to