Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Bumped rust-s3 in example
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Oct 18, 2021
1 parent 13f8d09 commit 34e4960
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/s3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ edition = "2018"

[dependencies]
arrow2 = { path = "../../", default-features = false, features = ["io_parquet", "io_parquet_compression"] }
rust-s3 = { version = "0.27.0-rc4", features = ["tokio"] }
rust-s3 = { version = "0.27.0", features = ["tokio"] }
futures = "0.3"
tokio = { version = "1.0.0", features = ["macros", "rt-multi-thread"] }
3 changes: 2 additions & 1 deletion examples/s3/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ async fn main() -> Result<()> {

// pages of the first row group and first column
// This is IO bounded and SHOULD be done in a shared thread pool (e.g. Tokio)
let pages = get_page_stream(&metadata, 0, 0, &mut reader, vec![]).await?;
let column_metadata = &metadata.row_groups[0].columns()[0];
let pages = get_page_stream(column_metadata, &mut reader, None, vec![]).await?;

// decompress the pages. This is CPU bounded and SHOULD be done in a dedicated thread pool (e.g. Rayon)
let pages = pages.map(|compressed_page| decompress(compressed_page?, &mut vec![]));
Expand Down

0 comments on commit 34e4960

Please sign in to comment.