You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Cargo.toml
+1
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@ log = "0.4.22"
59
59
mime = "0.3.17"
60
60
mockito = "1.5"
61
61
object_store = "0.11.0"
62
+
once_cell = "1.20.2"
62
63
openssl = { version = "0.10.68", features = ["vendored"] }
63
64
openssl-src = "=300.4.1"# joinked from https://github.com/iopsystems/rpc-perf/commit/705b290d2105af6f33150da04b217422c6d68701#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542R41 to cross-compile Python
64
65
parquet = { version = "52.2", default-features = false }
/// Modified version of object_store::parse_url_opts that also parses env
21
-
///
22
-
/// It does the same, except we start from env vars, then apply url and then overrides from options
23
-
///
24
-
/// This is POC. To improve on this idea, maybe it's good to "cache" a box with dynamic ObjectStore for each bucket we access, since ObjectStore have some logic inside tied to a bucket level, like connection pooling, credential caching
|builder,(key, value)| match key.as_ref().parse(){
59
86
Ok(k) => builder.with_config(k, value),
60
87
Err(_) => builder,
61
88
},
62
89
);
63
-
Box::new(builder.build()?)
90
+
Arc::new(builder.build()?)
64
91
}
65
92
s => {
66
93
returnErr(object_store::Error::Generic{
@@ -69,5 +96,101 @@ where
69
96
})
70
97
}
71
98
};
72
-
Ok((store, path))
99
+
Ok(store)
100
+
}
101
+
102
+
/// Modified version of object_store::parse_url_opts that also parses env
103
+
///
104
+
/// It does the same, except we start from env vars, then apply url and then overrides from options
105
+
///
106
+
/// This is POC. To improve on this idea, maybe it's good to "cache" a box with dynamic ObjectStore for each bucket we access, since ObjectStore have some logic inside tied to a bucket level, like connection pooling, credential caching
0 commit comments