smaheshwar-pltr commented on code in PR #17984:
URL: https://github.com/apache/iceberg/pull/17984#discussion_r3958078503
##########
core/src/main/java/org/apache/iceberg/SnapshotProducer.java:
##########
@@ -499,10 +533,14 @@ public void commit() {
if (base.snapshot(newSnapshot.snapshotId()) != null) {
// this is a rollback operation
update.setBranchSnapshot(newSnapshot.snapshotId(),
targetBranch);
- } else if (stageOnly) {
- update.addSnapshot(newSnapshot);
} else {
- update.setBranchSnapshot(newSnapshot, targetBranch);
+ // add the snapshot and its manifest list keys in the same
metadata update
+ manifestListKeys.forEach(update::addEncryptionKey);
Review Comment:
Yes, I've tried to clarify this now with better naming and code comments /
docstrings, LMKWYT and thanks for flagging this
--
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]