aokolnychyi commented on a change in pull request #1376:
URL: https://github.com/apache/iceberg/pull/1376#discussion_r476116375
##########
File path:
spark/src/test/java/org/apache/iceberg/actions/TestExpireSnapshotsAction.java
##########
@@ -952,5 +952,19 @@ public void
testExpireOlderThanWithRollbackAndMergedManifests() {
checkExpirationResults(1, 1, 1, result);
}
+
+ @Test
+ public void testExpireOnEmptyTable() {
+
+ Set<String> deletedFiles = Sets.newHashSet();
+
+ // table has no data, testing ExpireSnapshots should not fail with no
snapshot
+ ExpireSnapshotsActionResult result =
Actions.forTable(table).expireSnapshots()
+ .expireOlderThan(System.currentTimeMillis())
Review comment:
nit: this should be formatted with 4 spaces instead of 8 like in the
rest of the tests
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]