-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storage: add object_store backend #11
Conversation
996d232
to
ef51b3a
Compare
src/storage.rs
Outdated
.store | ||
.head(path) | ||
.await | ||
.map_err(|err| StorageError::ParquetReadError(Box::new(err)))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so weird ... we won't be able to afford two roundtrips to s3. Why does it want this?
1. Test parquet read/write for all ObjectStorage types 2. Test datasets only with ObjectStorage::InMemoryStore
} | ||
|
||
#[tokio::test(flavor = "multi_thread")] | ||
async fn test_read_write_parquet_object_storage() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new test
* main: Arc<Bytes> -> Bytes (#16)
* main: Fix a bug with adding chunks to existing arrays
let upload = self.store.put_multipart(&path).await?; | ||
// TODO: new_with_chunk_size? | ||
let mut write = object_store::WriteMultipart::new(upload); | ||
write.write(&bytes); | ||
write.finish().await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went with https://docs.rs/object_store/latest/object_store/struct.WriteMultipart.html instead of https://docs.rs/object_store/latest/object_store/trait.MultipartUpload.html because it seemed easier.
dc1ae54
to
398e481
Compare
No description provided.