liurenjie1024 commented on issue #232:
URL: https://github.com/apache/iceberg-rust/issues/232#issuecomment-1982235386

   > When `add_schema` has been called, both `schemas` and `current_schema_id` 
will be updated? The same question to `partition_specs`.
   
   Yes, the `add_schema` process consists of several steps as in [java 
implementation](https://github.com/apache/iceberg/blob/2e291c2b67a643ffe93e139483df55f3639cc39d/core/src/main/java/org/apache/iceberg/TableMetadata.java#L1449)
   
   1. Check if already existed same schema.
   2. If not, assign schema id to it.
   3. Modify schemas.
   
   Similar things happens for `partition_specs`.
   
   Other methods such as 
[`setBranchSnapshot`](https://github.com/apache/iceberg/blob/2e291c2b67a643ffe93e139483df55f3639cc39d/core/src/main/java/org/apache/iceberg/TableMetadata.java#L1180)
 are also quite complicated.


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