rdblue commented on code in PR #4922:
URL: https://github.com/apache/iceberg/pull/4922#discussion_r886265531
##########
core/src/main/java/org/apache/iceberg/TableMetadata.java:
##########
@@ -120,13 +120,15 @@ static TableMetadata newTableMetadata(Schema schema,
// break existing tables.
MetricsConfig.fromProperties(properties).validateReferencedColumns(schema);
+ SnapshotRef main = SnapshotRef.branchBuilder(-1).build();
Review Comment:
If the current snapshot is -1, there should be no main ref. In that case,
there is no current state or main. We're moving away from using `-1` as a
special snapshot ID.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]