namrathamyske commented on code in PR #5010:
URL: https://github.com/apache/iceberg/pull/5010#discussion_r902894937
##########
core/src/main/java/org/apache/iceberg/SnapshotProducer.java:
##########
@@ -282,6 +299,7 @@ protected TableMetadata refresh() {
@Override
public void commit() {
// this is always set to the latest commit attempt's snapshot id.
+ String branch = toBranch == null ? SnapshotRef.MAIN_BRANCH : toBranch;
Review Comment:
Agree with your suggestion. I have defaulted targetBranch to main and just
changed the way we access snapshot by ref.
--
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]