Skip to content
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

Merged
merged 19 commits into from
Aug 17, 2024
Merged

Storage: add object_store backend #11

merged 19 commits into from
Aug 17, 2024

Conversation

dcherian
Copy link
Contributor

No description provided.

Base automatically changed from fix-lint to main August 15, 2024 00:53
@dcherian dcherian force-pushed the object_store branch 3 times, most recently from 996d232 to ef51b3a Compare August 15, 2024 19:06
src/storage.rs Outdated
.store
.head(path)
.await
.map_err(|err| StorageError::ParquetReadError(Box::new(err)))?;
Copy link
Collaborator

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
@dcherian dcherian marked this pull request as ready for review August 16, 2024 18:02
}

#[tokio::test(flavor = "multi_thread")]
async fn test_read_write_parquet_object_storage() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new test

Comment on lines +202 to +206
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?;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dcherian dcherian force-pushed the object_store branch 3 times, most recently from dc1ae54 to 398e481 Compare August 16, 2024 22:12
@dcherian dcherian enabled auto-merge (squash) August 16, 2024 22:13
@dcherian dcherian disabled auto-merge August 16, 2024 22:23
@dcherian dcherian merged commit 7009d23 into main Aug 17, 2024
1 check passed
@dcherian dcherian deleted the object_store branch August 17, 2024 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants