Skip to content

Commit 314406d

Browse files
ForeverAngryJanKaul
authored andcommitted
refactor: remove legacy snapshot expiration implementation and update README example
1 parent 625f6d3 commit 314406d

3 files changed

Lines changed: 3 additions & 1009 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ It provides an Iceberg integration for the [Datafusion](https://arrow.apache.org
6767

6868
## Example
6969

70-
Check out the [datafusion examples](datafusion_iceberg/examples) and [maintenance examples](iceberg-rust/examples/).
70+
Check out the [datafusion examples](datafusion_iceberg/examples).
7171

7272
### Basic Table Operations
7373

iceberg-rust/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@
4646
//! .await?;
4747
//!
4848
//! // Expire old snapshots for maintenance
49-
//! let result = table.expire_snapshots()
49+
//! let expired_snapshot_ids = table.expire_snapshots()
5050
//! .expire_older_than(chrono::Utc::now().timestamp_millis() - 30 * 24 * 60 * 60 * 1000)
5151
//! .retain_last(10)
5252
//! .execute()
5353
//! .await?;
5454
//!
55-
//! println!("Expired {} snapshots", result.expired_snapshot_ids.len());
55+
//! println!("Expired {} snapshots", expired_snapshot_ids.len());
5656
//! # Ok(())
5757
//! # }
5858
//! ```

0 commit comments

Comments
 (0)