jackye1995 edited a comment on issue #2528:
URL: https://github.com/apache/iceberg/issues/2528#issuecomment-828086527


   Sorry I think I misunderstood what you meant a bit. So I agree that the 
identifier should be recreated after a new struct is created in 
`TypeUtil#assignFreshIds`. I thought you were talking about refreshing the 
identifier at the same place as sort order in `TableMetadat#buildReplacement`, 
sorry for the misunderstanding.
   
   The new `Schema` created in that method should use the constructor `new 
Schema(struct, identfierFieldIds)` instead of the current `new Schema(struct)`, 
and the identifier will be refreshed at that point of time. That will be done 
as a part of the subsequent PR, because there are many places using the schema 
constructors, I plan to change them in a single pass.


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

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to