badalprasadsingh opened a new pull request, #1637:
URL: https://github.com/apache/iceberg-go/pull/1637

   ## Description
   
   Fixes #1636 
   
   Writes on a non-main branch built snapshots parented on main's head because 
`createSnapshotProducer` used `MetadataBuilder.currentSnapshot()` (only synced 
with main), ignoring `txn.branch`. This corrupted branch lineage and could 
replace branch data with main's on the first commit.
   
   Added `currentSnapshotForRef` / `currentSnapshotIDForRef`, and used them for 
the parent snapshot, the `AssertRefSnapshotID` requirement, and the `overwrite` 
to `append` downgrade check. `main` / `empty-ref` behavior is unchanged; a 
not-yet-existing branch falls back to the current snapshot.
   
   ## Testing
   
   Added the necessary tests for it.


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