liurenjie1024 commented on code in PR #129:
URL: https://github.com/apache/iceberg-rust/pull/129#discussion_r1441251310


##########
crates/iceberg/src/spec/table_metadata.rs:
##########
@@ -38,6 +38,12 @@ static MAIN_BRANCH: &str = "main";
 static DEFAULT_SPEC_ID: i32 = 0;
 static DEFAULT_SORT_ORDER_ID: i64 = 0;
 
+pub(crate) static EMPTY_SNAPSHOT_ID: i64 = -1;

Review Comment:
   This is in fact to be compatible with v1 format. I see old implementation 
uses `-1` to indicate no empty snapshot. This is only used in ser/de, and we 
still use `None` for in memory data structure.



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