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

GH-39292 [C++][FS]: Remove the AzureBackend enum and add more flexible connection options #39293

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

felipecrv
Copy link
Contributor

@felipecrv felipecrv commented Dec 19, 2023

Rationale for this change

It's good to avoid mentioning the specific test environment in the implementation code.

What changes are included in this PR?

  • Removal of the enum
  • Removal of the AzureOptions::backend class member
  • Addition of more options to AzureOptions
  • Removal of some private string members of AzureOptions -- the URLs are built on-the-fly when the clients are instantiated now

Are these changes tested?

Yes.

Are there any user-facing changes?

Changes to the public interface (azurefs.h) that won't affect users because the AzureFS implementation is not used yet.

@felipecrv
Copy link
Contributor Author

@Tom-Newton @kou

Copy link

⚠️ GitHub issue #39292 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Dec 19, 2023
@felipecrv
Copy link
Contributor Author

Unrelated failures on macOS and appveyor builds.

@felipecrv felipecrv merged commit 56991d3 into apache:main Dec 19, 2023
32 of 34 checks passed
@felipecrv felipecrv removed the awaiting committer review Awaiting committer review label Dec 19, 2023
@felipecrv felipecrv deleted the azure_options_backend branch December 19, 2023 14:00
const std::string& account_name) {
std::string url;
url += scheme + "://";
if (!authority.empty()) {
Copy link
Member

Choose a reason for hiding this comment

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

I think that we should reject empty authority because it builds no host part URL.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My reasoning here is that there are many validations I could apply, but the most complete validation will come from the error messages triggered by using the filesystem with a bogus URL with 3 slashes after https:.

@github-actions github-actions bot added the awaiting changes Awaiting changes label Dec 19, 2023
Copy link

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 56991d3.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 2 possible false positives for unstable benchmarks that are known to sometimes produce them.

clayburn pushed a commit to clayburn/arrow that referenced this pull request Jan 23, 2024
…lexible connection options (apache#39293)

### Rationale for this change

It's good to avoid mentioning the specific test environment in the implementation code.

### What changes are included in this PR?

 - Removal of the enum
 - Removal of the `AzureOptions::backend` class member
 - Addition of more options to `AzureOptions`
 - Removal of some private string members of `AzureOptions` -- the URLs are built on-the-fly when the clients are instantiated now

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Changes to the public interface (`azurefs.h`) that won't affect users because the `AzureFS` implementation is not used yet.
* Closes: apache#39292

Authored-by: Felipe Oliveira Carvalho <felipekde@gmail.com>
Signed-off-by: Felipe Oliveira Carvalho <felipekde@gmail.com>
dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
…lexible connection options (apache#39293)

### Rationale for this change

It's good to avoid mentioning the specific test environment in the implementation code.

### What changes are included in this PR?

 - Removal of the enum
 - Removal of the `AzureOptions::backend` class member
 - Addition of more options to `AzureOptions`
 - Removal of some private string members of `AzureOptions` -- the URLs are built on-the-fly when the clients are instantiated now

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Changes to the public interface (`azurefs.h`) that won't affect users because the `AzureFS` implementation is not used yet.
* Closes: apache#39292

Authored-by: Felipe Oliveira Carvalho <felipekde@gmail.com>
Signed-off-by: Felipe Oliveira Carvalho <felipekde@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C++] Remove the AzureOptions::backend option
3 participants