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] Handle PySparkRuntimeError when populating globals in databricks.sdk.runtime #810

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mgyucht
Copy link
Contributor

@mgyucht mgyucht commented Oct 31, 2024

Changes

The runtime auth methods fail when using the Python SDK in a Python subprocess. In this environment, the UserNamespaceInitializer is present as it is built into DBR, but it depends on process-level state that is only initialized for the notebook process itself. This PR tolerates the error thrown by PySpark so that default auth can fall back to other auth methods in this environment.

Tests

  • make test run locally
  • make fmt applied
  • relevant integration tests applied

@mgyucht mgyucht temporarily deployed to test-trigger-is October 31, 2024 13:45 — with GitHub Actions Inactive
@mgyucht mgyucht temporarily deployed to test-trigger-is October 31, 2024 13:49 — with GitHub Actions Inactive
@eng-dev-ecosystem-bot
Copy link
Collaborator

Test Details: go/deco-tests/11613171470

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.

2 participants