Skip to content

infer use_fabric_endpoint based on URI containing "dfs.fabric.microsoft.com" #658

Description

@hutch3232

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
I'm a polars user on Microsoft Fabric. I wasn't sure if this issue was better suited for polars or object-store. Decided maybe lower-level is better.

On recent versions of polars, in order to read from Fabric OneLake using the abfss:// URI, you have to pass storage_options={"use_fabric_endpoint": "true"} which I believe gets passed to some object-store credential provider.

It certainly is not a major challenge, but it feels untidy and redundant to have to specify that when I'm providing a URI that says it is fabric, e.g., "abfss://<workspace id>@onelake.dfs.fabric.microsoft.com/<lakehouse id>"

Describe the solution you'd like
I think whatever downstream effects this storage operation results in should have the default vary based on the URI passed. i.e., if it sees this URI, it should default to true.

Describe alternatives you've considered
An environment variable is also a possibility, and I tried a few to see if perhaps this already was configurable based on that, but it didn't seem to me. I tried, for example, USE_FABRIC_ENDPOINT.

Additional context
Possibly related issues:
#474
#430
pola-rs/polars#22096

I saw this was recently discussed in the MicrosoftFabric subreddit:
https://www.reddit.com/r/MicrosoftFabric/comments/1riuzs9/using_abfss_uris_with_new_polars_versions/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions