Skip to content

Commit

Permalink
fixing doctest test
Browse files Browse the repository at this point in the history
  • Loading branch information
a-agmon committed Mar 13, 2024
1 parent 3ddbfb4 commit 05c74f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/iceberg/src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ impl Table {
/// ```rust, no_run
/// # use iceberg::io::FileIO;
/// # use iceberg::table::StaticTable;
/// # use iceberg::TableIdent;
/// # tokio_test::block_on(async {
/// let metadata_file_location = "s3://bucket_name/path/to/metadata.json";
/// let file_io = FileIO::from_path(&metadata_file_location).unwrap().build().unwrap();
/// let static_table = StaticTable::from_metadata_file(&metadata_file_location, file_io).await.unwrap();
/// let static_identifier = TableIdent::from_strs(["static_ns", "static_table"]).unwrap();
/// let static_table = StaticTable::from_metadata_file(&metadata_file_location, static_identifier, file_io).await.unwrap();
/// let snapshot_id = static_table
/// .metadata()
/// .current_snapshot()
Expand Down

0 comments on commit 05c74f3

Please sign in to comment.