rajarshisarkar commented on code in PR #7194:
URL: https://github.com/apache/iceberg/pull/7194#discussion_r1147485114


##########
core/src/main/java/org/apache/iceberg/metrics/CommitReport.java:
##########
@@ -19,12 +19,15 @@
 package org.apache.iceberg.metrics;
 
 import java.util.Map;
+import org.apache.iceberg.TableOperations;
 import org.immutables.value.Value;
 
 /** A commit report that contains all relevant information from a Snapshot. */
 @Value.Immutable
 public interface CommitReport extends MetricsReport {
 
+  TableOperations tableOperations();

Review Comment:
   `TableOperations` is required in the `MetricsReporter` implementation to 
fetch:
   
   1.  Catalog/table properties.
   2. List of snapshots (to know difference between the current snapshot and 
latest rewrite snapshot)
   3. Configuration object (to know `hive.metastore.uris`)
   4. IO class name.
   
   If we cannot add `TableOperations` to `CommitReport`, can we have a new type 
of `MetricsReport` for it? Please let me know your thoughts.



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