aokolnychyi commented on code in PR #8346:
URL: https://github.com/apache/iceberg/pull/8346#discussion_r1297557600


##########
core/src/main/java/org/apache/iceberg/BaseFileScanTask.java:
##########
@@ -100,6 +141,20 @@ public long length() {
       return len;
     }
 
+    @Override
+    public long sizeBytes() {
+      if (sizeBytes == null) {
+        this.sizeBytes = FileScanTask.super.sizeBytes();
+      }
+
+      return sizeBytes;
+    }
+
+    @Override
+    public int filesCount() {
+      return fileScanTask.filesCount();

Review Comment:
   Delegate to the parent task to avoid materializing the list of deletes for 
the files count in the split task as well.



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