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


##########
api/src/main/java/org/apache/iceberg/actions/RewriteDataFiles.java:
##########
@@ -197,6 +197,11 @@ default int rewrittenDataFilesCount() {
     default long rewrittenBytesCount() {
       return 
rewriteResults().stream().mapToLong(FileGroupRewriteResult::rewrittenBytesCount).sum();
     }
+
+    @Value.Default

Review Comment:
   I think we should probably have result have two new interfaces, something 
like
   ```java
   List<FileGroupFailureResult> rewriteFailures();
   
   default long failedGroupCount() {
         return rewriteFailures().size();
   }
   
   default long failedDataFilesRewrites() {
       return 
rewriteFailures().stream().mapToInt(FailedFileGroup::filescount).sum()
   }
   ```
   Then the two failures



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