tomtongue commented on code in PR #9624:
URL: https://github.com/apache/iceberg/pull/9624#discussion_r1479425851
##########
spark/v3.5/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestReplaceBranch.java:
##########
@@ -149,9 +148,6 @@ public void testReplaceBranchWithRetain() throws
NoSuchTableException {
long first = table.currentSnapshot().snapshotId();
String branchName = "b1";
table.manageSnapshots().createBranch(branchName, first).commit();
- SnapshotRef b1 = table.refs().get(branchName);
- Integer minSnapshotsToKeep = b1.minSnapshotsToKeep();
- Long maxSnapshotAgeMs = b1.maxSnapshotAgeMs();
Review Comment:
The sql in this test is like `ALTER TABLE catalog.db.tbl REPLACE BRANCH
branch AS OF VERSION snapshotId RETAIN maxRefAge timeUnit`. For this query, the
`minSnapshotsToKeep` and `maxSnapshotAgeMs` are always null in the current
impl. If the query has `WITH SNAPSHOT RETENTION` the parameters are filled. So
I remove this part and change the tests to null checks.
--
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]