Skip to content

Commit

Permalink
Merge pull request #77 from spetlr-org/feature/add-product-dbsdk
Browse files Browse the repository at this point in the history
feat: add product and version to databricks sdk
  • Loading branch information
LauJohansson authored Aug 22, 2023
2 parents 4f33217 + 835a1c3 commit c4c26ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/spetlr/db_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

from databricks.sdk import WorkspaceClient

from spetlr import __name__ as spetlrname
from spetlr import __version__ as spetlrversion
from spetlr.functions import init_dbutils


Expand Down Expand Up @@ -43,4 +45,6 @@ def getDbApi() -> WorkspaceClient:
if not host or not token:
raise Exception("Unable to auto-configure api client.")

return WorkspaceClient(host=host, token=token)
return WorkspaceClient(
host=host, token=token, product=spetlrname, product_version=spetlrversion
)

0 comments on commit c4c26ed

Please sign in to comment.