Skip to content

Commit

Permalink
fix config resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
donotpush committed Jan 23, 2025
1 parent 37ca7f4 commit e89548f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dlt/destinations/impl/databricks/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
@configspec
class DatabricksCredentials(CredentialsConfiguration):
catalog: str = None
server_hostname: str = None
http_path: str = None
server_hostname: Optional[str] = None
http_path: Optional[str] = None
access_token: Optional[TSecretStrValue] = None
client_id: Optional[TSecretStrValue] = None
client_secret: Optional[TSecretStrValue] = None
Expand Down Expand Up @@ -48,9 +48,9 @@ def on_resolved(self) -> None:
# pick the first warehouse on the list
warehouses: List[EndpointInfo] = list(w.warehouses.list())
self.server_hostname = warehouses[0].odbc_params.hostname
#self.http_path = warehouses[0].odbc_params.path
except Exception as e:
raise e
self.http_path = warehouses[0].odbc_params.path
except Exception:
pass

if not self.access_token:
raise ConfigurationValueError(
Expand Down

0 comments on commit e89548f

Please sign in to comment.