Skip to content

Commit

Permalink
Adding logging for warehouse per model (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db authored Nov 16, 2023
2 parents cf34191 + bf1ac00 commit c0a9416
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbt/adapters/databricks/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1124,10 +1124,12 @@ def _get_http_path(node: Optional[ResultNode], creds: DatabricksCredentials) ->
# If none is specified return the default path from creds.
compute_name = _get_compute_name(node)
if not node or not compute_name:
logger.debug("Using default compute resource.")
return creds.http_path

http_path = None
if creds.compute:
logger.debug(f"Using compute resource {compute_name}.")
http_path = creds.compute.get(compute_name, {}).get("http_path", None)

if not http_path:
Expand Down

0 comments on commit c0a9416

Please sign in to comment.