Skip to content

Commit 64dfe56

Browse files
committed
implement update_statistics on transaction
1 parent c06e320 commit 64dfe56

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pyiceberg/table/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,15 @@ def update_snapshot(self, snapshot_properties: Dict[str, str] = EMPTY_DICT) -> U
438438
"""
439439
return UpdateSnapshot(self, io=self._table.io, snapshot_properties=snapshot_properties)
440440

441+
def update_statistics(self) -> UpdateStatistics:
442+
"""
443+
Create a new UpdateStatistics to update the statistics of the table.
444+
445+
Returns:
446+
A new UpdateStatistics
447+
"""
448+
return UpdateStatistics(transaction=self)
449+
441450
def append(self, df: pa.Table, snapshot_properties: Dict[str, str] = EMPTY_DICT) -> None:
442451
"""
443452
Shorthand API for appending a PyArrow table to a table transaction.

0 commit comments

Comments
 (0)