databricks-sdk-py
databricks-sdk-py copied to clipboard
[Fix] Handle PySparkRuntimeError when populating globals in databricks.sdk.runtime
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 testrun locally - [ ]
make fmtapplied - [ ] relevant integration tests applied
Test Details: go/deco-tests/11613171470