Skip to content

Commit

Permalink
fix: propagate storage_options to v2 writer (#2578)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiachengdb authored Jul 10, 2024
1 parent ebf7c5d commit f65e804
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rust/lance/src/dataset/fragment/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ impl<'a> FragmentCreateBuilder<'a> {

Self::validate_schema(&schema, stream.schema().as_ref())?;

let (object_store, base_path) = ObjectStore::from_uri(self.dataset_uri).await?;
let (object_store, base_path) = ObjectStore::from_uri_and_params(
self.dataset_uri,
&params.store_params.clone().unwrap_or_default(),
)
.await?;
let filename = format!("{}.lance", Uuid::new_v4());
let mut fragment = Fragment::new(id);
let full_path = base_path.child(DATA_DIR).child(filename.clone());
Expand Down

0 comments on commit f65e804

Please sign in to comment.