Skip to content

Commit b13398f

Browse files
committed
Write object_store to the cache when creating table
1 parent 1804e12 commit b13398f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

catalogs/iceberg-rest-catalog/src/catalog.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ impl Catalog for RestCatalog {
358358
x.build(bucket)
359359
})
360360
})?;
361+
362+
self.cache
363+
.write()
364+
.unwrap()
365+
.insert(identifier.clone(), object_store.clone());
361366

362367
Table::new(identifier.clone(), self, object_store, response.metadata).await
363368
}

0 commit comments

Comments
 (0)