Skip to content

Conversation

@aykut-bozkurt
Copy link
Member

@aykut-bozkurt aykut-bozkurt commented Mar 9, 2025

pg_parquet supports reading/writing from/to public http(s) parquet uris to/from Postgres tables.

Closes #108.

let allow_http = std::env::var("ALLOW_HTTP").is_ok();

let client_options = ClientOptions::new()
.with_allow_invalid_certificates(true)
Copy link
Member Author

Choose a reason for hiding this comment

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

do not allow it without env vars. We may accept custom certificates?

Copy link
Member Author

Choose a reason for hiding this comment

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

lets not support custom certificates now.

ObjectStoreScheme::parse(uri).map_err(|_| {
format!(
"unrecognized uri {}. pg_parquet supports local paths, s3:// or azure:// schemes.",
"unrecognized uri {}. pg_parquet supports local paths, https://, s3:// or azure:// schemes.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

unrelated, but I think it's better to advertise the az:// scheme

ObjectStoreScheme::AmazonS3 => parse_s3_bucket(uri)
.ok_or(format!("unsupported s3 uri {uri}"))
.map(Some),
ObjectStoreScheme::MicrosoftAzure => parse_azure_blob_container(uri)
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this preserve Azure's https://...windows.something.net/ syntax?

Copy link
Member Author

Choose a reason for hiding this comment

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

we only allow az(ure)://{container}/key or https://{account}.blob.core.windows.net/{container}. Uris are correctly identified by object store. (some https are azure or aws)

@aykut-bozkurt aykut-bozkurt force-pushed the aykut/https branch 3 times, most recently from 934dfbf to 6a3c530 Compare March 11, 2025 22:11
@aykut-bozkurt aykut-bozkurt linked an issue Mar 11, 2025 that may be closed by this pull request
@aykut-bozkurt aykut-bozkurt changed the base branch from aykut/field-ids to main March 14, 2025 08:19
pg_parquet supports reading/writing from/to public http(s) parquet uris to/from Postgres tables.
@codecov
Copy link

codecov bot commented Mar 14, 2025

Codecov Report

Attention: Patch coverage is 98.11321% with 2 lines in your changes missing coverage. Please review.

Project coverage is 91.94%. Comparing base (6ccd41b) to head (063c596).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/object_store/http.rs 96.96% 1 Missing ⚠️
src/object_store/object_store_cache.rs 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #115      +/-   ##
==========================================
+ Coverage   91.84%   91.94%   +0.09%     
==========================================
  Files          83       84       +1     
  Lines       10494    10597     +103     
==========================================
+ Hits         9638     9743     +105     
+ Misses        856      854       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aykut-bozkurt aykut-bozkurt merged commit 4455fce into main Mar 14, 2025
6 checks passed
@aykut-bozkurt aykut-bozkurt deleted the aykut/https branch March 14, 2025 09:51
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.

Support https uris

3 participants