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


##########
spark/v3.4/spark/src/main/java/org/apache/iceberg/spark/source/SparkScan.java:
##########
@@ -170,8 +189,35 @@ public String description() {
         table(), branch(), Spark3Util.describe(filterExpressions), 
groupingKeyFieldNamesAsString);
   }
 
+  @Override
+  public CustomTaskMetric[] reportDriverMetrics() {
+    ScanReport scanReport = metricsReportSupplier != null ? 
metricsReportSupplier.get() : null;
+    if (scanReport == null) {
+      return new CustomTaskMetric[0];
+    }
+
+    List<CustomTaskMetric> driverMetrics = Lists.newArrayList();
+    driverMetrics.add(TaskTotalFileSize.from(scanReport));

Review Comment:
   Here is a list of the metrics:
   ```
   TimerResult totalPlanningDuration(); // DONE
   CounterResult resultDataFiles(); // DONE
   CounterResult resultDeleteFiles(); // MISSING
   CounterResult totalDataManifests(); // MISSING
   CounterResult totalDeleteManifests(); // MISSING
   CounterResult scannedDataManifests(); // DONE
   CounterResult skippedDataManifests(); // DONE
   CounterResult totalFileSizeInBytes(); // DONE
   CounterResult totalDeleteFileSizeInBytes(); // MISSING
   CounterResult skippedDataFiles(); // DONE
   CounterResult skippedDeleteFiles(); // MISSING
   CounterResult scannedDeleteManifests(); // MISSING
   CounterResult skippedDeleteManifests(); // MISSING
   CounterResult indexedDeleteFiles(); // MISSING
   CounterResult equalityDeleteFiles(); // MISSING
   CounterResult positionalDeleteFiles(); // MISSING
   ```



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to