Describe the bug
DefaultSqlDbxIOClient throws an unexpected error if there are no DATABRICKS_HTTP_PATH or DATABRICKS_SERVER_HOSTNAME environmental variables set up.
To Reproduce
Steps to reproduce the behavior:
- Have no
DATABRICKS_HTTP_PATH or DATABRICKS_SERVER_HOSTNAME environmental variable set up
- Try to initialize a DefaultSqlDbxIOClient
- See the UnavailableAuthError('No available provider found')
Expected behavior
The error should say that the needed environmental variables are not set up and not that no auth provider is not found.
Stacktrace
dbxio version 0.5.3
File "/Users/nbond/code/toloka-python/.venv-all/lib/python3.10/site-packages/dbxio/core/client.py", line 134, in sql
return self._sql_driver.sql(query)
File "/Users/nbond/code/toloka-python/.venv-all/lib/python3.10/site-packages/dbxio/core/client.py", line 121, in _sql_driver
cluster_credentials=self._cluster_credentials,
File "/Users/nbond/code/toloka-python/.venv-all/lib/python3.10/site-packages/dbxio/core/client.py", line 100, in _cluster_credentials
return self.credential_provider.get_credentials()
File "/Users/nbond/code/toloka-python/.venv-all/lib/python3.10/site-packages/dbxio/core/credentials.py", line 213, in get_credentials
self.ensure_set_auth_provider()
File "/Users/nbond/code/toloka-python/.venv-all/lib/python3.10/site-packages/dbxio/core/credentials.py", line 209, in ensure_set_auth_provider
raise UnavailableAuthError('No available provider found')
Cloud provider
Additional context
None
Describe the bug
DefaultSqlDbxIOClient throws an unexpected error if there are no
DATABRICKS_HTTP_PATHorDATABRICKS_SERVER_HOSTNAMEenvironmental variables set up.To Reproduce
Steps to reproduce the behavior:
DATABRICKS_HTTP_PATHorDATABRICKS_SERVER_HOSTNAMEenvironmental variable set upExpected behavior
The error should say that the needed environmental variables are not set up and not that no auth provider is not found.
Stacktrace
dbxio version 0.5.3
Cloud provider
Additional context
None