You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These could then be sent trough to databricks.sql.connect (with the exception of client_id and client_secret which require the creation of a credentials provider if defined).
Adding these options (in particular OAuth) would allow much more secure and robust connection alternatives!
The text was updated successfully, but these errors were encountered:
Soda core uses
databricks.sql.connect
for authentication, which offer many options, as documented:Unfortunately, the way this is implemented by
soda.data_sources.spark_data_source.databricks_connection_function
limits it to personal access tokens:soda-core/soda/spark/soda/data_sources/spark_data_source.py
Lines 136 to 149 in 09262b0
Likewise in SparkDataSource:
soda-core/soda/spark/soda/data_sources/spark_data_source.py
Lines 474 to 491 in 09262b0
A solution could be to extend the signature of
databricks_connection_function
to matchdatabricks.sql.connect
, for example:These could then be sent trough to
databricks.sql.connect
(with the exception ofclient_id
andclient_secret
which require the creation of a credentials provider if defined).Adding these options (in particular OAuth) would allow much more secure and robust connection alternatives!
The text was updated successfully, but these errors were encountered: