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

feat: Add Azure credential provider using DefaultAzureCredential() #20384

Merged
merged 5 commits into from
Dec 20, 2024

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Dec 20, 2024

I don't have anything working locally with DefaultAzureCredential(), but it apparently works for some authentication setups -

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars labels Dec 20, 2024
# }
# ]

return json.loads(subprocess.check_output(cmd))[0]["value"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is ported from some recently added logic to the rust side from (#20357), we need this here as the Python credential provider will override the one set by the Rust side if it is passed.

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

Attention: Patch coverage is 22.03390% with 46 lines in your changes missing coverage. Please review.

Project coverage is 79.13%. Comparing base (ff00869) to head (ef1e899).
Report is 23 commits behind head on main.

Files with missing lines Patch % Lines
py-polars/polars/io/cloud/credential_provider.py 26.19% 31 Missing ⚠️
crates/polars-io/src/cloud/credential_provider.rs 0.00% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #20384      +/-   ##
==========================================
+ Coverage   78.38%   79.13%   +0.74%     
==========================================
  Files        1572     1566       -6     
  Lines      219962   219277     -685     
  Branches     2465     2470       +5     
==========================================
+ Hits       172423   173525    +1102     
+ Misses      46971    45184    -1787     
  Partials      568      568              

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


cmd = az_cmd if sys.platform != "win32" else ["cmd", "/C", *az_cmd]

# [
Copy link
Member

Choose a reason for hiding this comment

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

Was this intended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants