apache / apache/arrow

[Python] Azure with SAS Keys

Open
#49,972 2 comments 0 reactions 0 assignees View on GitHub
Component: Python Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the bug, including details regarding any error messages, version, and platform.

Initialising an Azure Filesystem object with a SAS key seems to produce a URL in the incorrect order and errors. The final URL that I assume is being used to query Azure is then shown in the error message.

I would have expected a URL of the form `https://{account_name}.dfs.core.windows.net/path/to/file?{saskey}`.

However instead the error message shows: `https://{account_name}.dfs.core.windows.net/{saskey}/path/to/file`. On reading a file, it errors.

I can successfully read the file using an account key.
However I can't use the default credential unless there's a way to customise the credentials searched and don't want to use account keys for general use. So will need to generate sas keys using the Azure SDK.

### Component(s)

Python

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.