|
89 | 89 | from pyiceberg.table.update import ( |
90 | 90 | AddPartitionSpecUpdate, |
91 | 91 | AddSchemaUpdate, |
92 | | - AddSnapshotUpdate, |
93 | 92 | AddSortOrderUpdate, |
94 | 93 | AssertCreate, |
95 | 94 | AssertRefSnapshotId, |
@@ -314,55 +313,6 @@ def set_properties(self, properties: Properties = EMPTY_DICT, **kwargs: Any) -> |
314 | 313 | updates = properties or kwargs |
315 | 314 | return self._apply((SetPropertiesUpdate(updates=updates),)) |
316 | 315 |
|
317 | | - @deprecated( |
318 | | - deprecated_in="0.7.0", |
319 | | - removed_in="0.8.0", |
320 | | - help_message="Please use one of the functions in ManageSnapshots instead", |
321 | | - ) |
322 | | - def add_snapshot(self, snapshot: Snapshot) -> Transaction: |
323 | | - """Add a new snapshot to the table. |
324 | | -
|
325 | | - Returns: |
326 | | - The transaction with the add-snapshot staged. |
327 | | - """ |
328 | | - updates = (AddSnapshotUpdate(snapshot=snapshot),) |
329 | | - |
330 | | - return self._apply(updates, ()) |
331 | | - |
332 | | - @deprecated( |
333 | | - deprecated_in="0.7.0", |
334 | | - removed_in="0.8.0", |
335 | | - help_message="Please use one of the functions in ManageSnapshots instead", |
336 | | - ) |
337 | | - def set_ref_snapshot( |
338 | | - self, |
339 | | - snapshot_id: int, |
340 | | - parent_snapshot_id: Optional[int], |
341 | | - ref_name: str, |
342 | | - type: str, |
343 | | - max_ref_age_ms: Optional[int] = None, |
344 | | - max_snapshot_age_ms: Optional[int] = None, |
345 | | - min_snapshots_to_keep: Optional[int] = None, |
346 | | - ) -> Transaction: |
347 | | - """Update a ref to a snapshot. |
348 | | -
|
349 | | - Returns: |
350 | | - The transaction with the set-snapshot-ref staged |
351 | | - """ |
352 | | - updates = ( |
353 | | - SetSnapshotRefUpdate( |
354 | | - snapshot_id=snapshot_id, |
355 | | - ref_name=ref_name, |
356 | | - type=type, |
357 | | - max_ref_age_ms=max_ref_age_ms, |
358 | | - max_snapshot_age_ms=max_snapshot_age_ms, |
359 | | - min_snapshots_to_keep=min_snapshots_to_keep, |
360 | | - ), |
361 | | - ) |
362 | | - |
363 | | - requirements = (AssertRefSnapshotId(snapshot_id=parent_snapshot_id, ref="main"),) |
364 | | - return self._apply(updates, requirements) |
365 | | - |
366 | 316 | def _set_ref_snapshot( |
367 | 317 | self, |
368 | 318 | snapshot_id: int, |
|
0 commit comments