File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1264,10 +1264,10 @@ Manage table statistics with operations through the `Table` API:
1264
1264
1265
1265
``` python
1266
1266
# To run a specific operation
1267
- table.update_statistics().set_statistics(snapshot_id = 1 , statistics_file = statistics_file).commit()
1267
+ table.update_statistics().set_statistics(statistics_file = statistics_file).commit()
1268
1268
# To run multiple operations
1269
1269
table.update_statistics()
1270
- .set_statistics(snapshot_id1, statistics_file1)
1270
+ .set_statistics(statistics_file1)
1271
1271
.remove_statistics(snapshot_id2)
1272
1272
.commit()
1273
1273
# Operations are applied on commit.
@@ -1277,7 +1277,7 @@ You can also use context managers to make more changes:
1277
1277
1278
1278
``` python
1279
1279
with table.update_statistics() as update:
1280
- update.set_statistics(snaphsot_id1, statistics_file)
1280
+ update.set_statistics(statistics_file)
1281
1281
update.remove_statistics(snapshot_id2)
1282
1282
```
1283
1283
Original file line number Diff line number Diff line change @@ -1058,7 +1058,7 @@ def update_statistics(self) -> UpdateStatistics:
1058
1058
We can also use context managers to make more changes. For example:
1059
1059
1060
1060
with table.update_statistics() as update:
1061
- update.set_statistics(snapshot_id=1, statistics_file=statistics_file)
1061
+ update.set_statistics(statistics_file=statistics_file)
1062
1062
update.remove_statistics(snapshot_id=2)
1063
1063
"""
1064
1064
return UpdateStatistics (transaction = Transaction (self , autocommit = True ))
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class UpdateStatistics(UpdateTableMetadata["UpdateStatistics"]):
43
43
We can also use context managers to make more changes. For example:
44
44
45
45
with table.update_statistics() as update:
46
- update.set_statistics(snapshot_id=1, statistics_file=statistics_file)
46
+ update.set_statistics(statistics_file=statistics_file)
47
47
update.remove_statistics(snapshot_id=2)
48
48
"""
49
49
You can’t perform that action at this time.
0 commit comments