Skip to content

Commit

Permalink
Revert changes to the read_parquet_cloud example
Browse files Browse the repository at this point in the history
  • Loading branch information
Qqwy committed Aug 1, 2023
1 parent 121fbb0 commit 75c3515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/read_parquet_cloud/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use polars::prelude::*;

// Login to your aws account and then copy the ../datasets/foods1.parquet file to your own bucket.
// Adjust the link below.
const TEST_S3: &str = "s3://polarstestbucket/*.parquet";
const TEST_S3: &str = "s3://lov2test/polars/datasets/*.parquet";

fn main() -> PolarsResult<()> {
let cred = Credentials::default().unwrap();
Expand All @@ -14,7 +14,7 @@ fn main() -> PolarsResult<()> {
let cloud_options = cloud::CloudOptions::default().with_aws([
(Key::AccessKeyId, &cred.access_key.unwrap()),
(Key::SecretAccessKey, &cred.secret_key.unwrap()),
(Key::Region, &"eu-central-1".into()),
(Key::Region, &"us-west-2".into()),
]);
args.cloud_options = Some(cloud_options);
let df = LazyFrame::scan_parquet(TEST_S3, args)?
Expand Down

0 comments on commit 75c3515

Please sign in to comment.