kevinjqliu commented on code in PR #1940: URL: https://github.com/apache/iceberg-python/pull/1940#discussion_r2056298150
########## pyiceberg/table/snapshots.py: ########## @@ -272,10 +272,10 @@ class SnapshotSummaryCollector: partition_metrics: DefaultDict[str, UpdateMetrics] max_changed_partitions_for_summaries: int - def __init__(self) -> None: + def __init__(self, partition_summary_limit: int = 0) -> None: self.metrics = UpdateMetrics() self.partition_metrics = defaultdict(UpdateMetrics) - self.max_changed_partitions_for_summaries = 0 + self.max_changed_partitions_for_summaries = partition_summary_limit def set_partition_summary_limit(self, limit: int) -> None: Review Comment: maybe we can deprecate this in favor of the init function -- 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