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

fix: Support null credentials for object store access. #2798

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

vrongmeal
Copy link
Contributor

GCS works (raising a PR for NULL Credentials):

> select * from 'gs://vrongmeal-public-test/data.csv';
┌───────┬─────────┐
│    id │ name    │
│    ── │ ──      │
│ Int64 │ Utf8    │
╞═══════╪═════════╡
│     1 │ vaibhav │
│     2 │ sean    │
│     3 │ grey    │
└───────┴─────────┘

Need to make a similar change upstream for S3 and Azure.

Fixes: #1065

GCS works (raising a PR for NULL Credentials):

```
> select * from 'gs://vrongmeal-public-test/data.csv';
┌───────┬─────────┐
│    id │ name    │
│    ── │ ──      │
│ Int64 │ Utf8    │
╞═══════╪═════════╡
│     1 │ vaibhav │
│     2 │ sean    │
│     3 │ grey    │
└───────┴─────────┘
```

Need to make a similar change upstream for S3 and Azure.

Fixes: #1065

Signed-off-by: Vaibhav <[email protected]>
Copy link
Contributor

@tychoish tychoish left a comment

Choose a reason for hiding this comment

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

this pr includes changes for gcs which is inconsistent with the PR description, just confused about what needs to be in the upstream vs here?

| AzureConfigKey::SasKey
| AzureConfigKey::Token
) {
creds = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

should break here?

Comment on lines +102 to +104
if !creds {
builder = builder.with_credentials(Arc::new(NullCredentialProvider));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

could we create a build with null credentials, and then override it if/as we find credentials, and avoid the bool?

@vrongmeal vrongmeal enabled auto-merge (squash) March 22, 2024 02:54
@vrongmeal vrongmeal merged commit 56c79fa into main Mar 22, 2024
25 checks passed
@vrongmeal vrongmeal deleted the vrongmeal/null-creds branch March 22, 2024 03:06
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.

Unable to add gcs and s3 objects as external tables
3 participants