twuebi commented on code in PR #575:
URL: https://github.com/apache/iceberg-go/pull/575#discussion_r2370392104


##########
table/metadata.go:
##########
@@ -1313,6 +1366,14 @@ func (c *commonMetadata) validate() error {
 
        c.constructRefs()
 
+       if err := c.checkMainRefMatchesCurrentSnapshot(); err != nil {
+               return err
+       }

Review Comment:
   Will check tomorrow what other implementations (Java,rust) do, I think I got 
this from rust, maybe there was a discussion in the rust pr. But yeah by the 
spec it shouldn't be required.



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

Reply via email to