Skip to content

Commit

Permalink
xx
Browse files Browse the repository at this point in the history
  • Loading branch information
FANNG1 committed Aug 24, 2024
1 parent 44e9292 commit 62a6559
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/examples/src/rest_catalog_read_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mod utils;
async fn main() -> Result<()> {
let catalog = utils::get_rest_catalog();

// There should be a table `ns1.t1` pre-created with column name
// There should be a table `ns1.t1` pre-created with column name `a`,`b`,`c`
let table_id = TableIdent::from_strs(["ns1", "t1"]).unwrap();
let table = catalog.load_table(&table_id).await?;

Expand Down
2 changes: 1 addition & 1 deletion crates/examples/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use std::env;
use iceberg_catalog_rest::{RestCatalog, RestCatalogConfig};

fn get_catalog_uri_from_env() -> String {
env::var("CATALOG_URI").unwrap_or("http://localhost:8080/".to_string())
env::var("CATALOG_URI").unwrap_or("http://localhost:8080".to_string())
}

pub fn get_rest_catalog() -> RestCatalog {
Expand Down

0 comments on commit 62a6559

Please sign in to comment.