Skip to content

Commit

Permalink
format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
donotpush committed Jan 22, 2025
1 parent 7641bcf commit 627b985
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dlt/destinations/impl/databricks/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def on_resolved(self) -> None:

w = WorkspaceClient()
notebook_context = (
w.dbutils.notebook.entry_point.getDbutils().notebook().getContext()
w.dbutils.notebook.entry_point.getDbutils().notebook().getContext() # type: ignore[union-attr]
)
self.access_token = notebook_context.apiToken().getOrElse(None)

Expand Down Expand Up @@ -88,7 +88,7 @@ class DatabricksClientConfiguration(DestinationClientDwhWithStagingConfiguration
staging_volume_name: Optional[str] = None
"""Name of the Databricks managed volume for temporary storage, e.g., <catalog_name>.<database_name>.<volume_name>. Defaults to '_dlt_temp_load_volume' if not set."""

def on_resolved(self):
def on_resolved(self) -> None:
if self.staging_volume_name and self.staging_volume_name.count(".") != 2:
raise ConfigurationValueError(
f"Invalid staging_volume_name format: {self.staging_volume_name}. Expected format"
Expand Down
2 changes: 0 additions & 2 deletions dlt/destinations/impl/databricks/databricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ def __init__(
self._staging_config = staging_config
self._job_client: "DatabricksClient" = None

self._sql_client = None

def run(self) -> None:
self._sql_client = self._job_client.sql_client

Expand Down

0 comments on commit 627b985

Please sign in to comment.