RussellSpitzer commented on code in PR #6801:
URL: https://github.com/apache/iceberg/pull/6801#discussion_r1102929989


##########
spark/v3.3/spark/src/test/java/org/apache/iceberg/spark/actions/TestRewriteDataFilesAction.java:
##########
@@ -159,6 +160,7 @@ public void testBinPackUnpartitionedTable() {
     Result result = basicRewrite(table).execute();
     Assert.assertEquals("Action should rewrite 4 data files", 4, 
result.rewrittenDataFilesCount());
     Assert.assertEquals("Action should add 1 data file", 1, 
result.addedDataFilesCount());
+    assertThat(result.rewrittenBytesCount()).isGreaterThan(0L);

Review Comment:
   Here we actually have the helper function,
   
     protected long testDataSize(Table table) {
       return 
Streams.stream(table.newScan().planFiles()).mapToLong(FileScanTask::length).sum();
     }



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