Skip to content

Commit

Permalink
Merge branch 'main' into 1.7.latest
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db committed May 21, 2024
2 parents c8e43f5 + 03afa0e commit a59e537
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## dbt-databricks 1.7.16 (May 21, 2024)

### Fixes

- Fix the issue that 1.7.15 was intended to fix (conn not initialized exception) ([671](https://github.com/databricks/dbt-databricks/pull/671))

## dbt-databricks 1.7.15 (May 16, 2024)

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion dbt/adapters/databricks/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: str = "1.7.15"
version: str = "1.7.16"
4 changes: 2 additions & 2 deletions dbt/adapters/databricks/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ def connect() -> DatabricksSQLConnectionWrapper:
user_agent=user_agent_entry,
)
except Error as exc:
logger.error(ConnectionCreateError(conn, exc))
logger.error(ConnectionCreateError(exc))
raise

def exponential_backoff(attempt: int) -> int:
Expand Down Expand Up @@ -1524,7 +1524,7 @@ def connect() -> DatabricksSQLConnectionWrapper:
user_agent=user_agent_entry,
)
except Error as exc:
logger.error(ConnectionCreateError(conn, exc))
logger.error(ConnectionCreateError(exc))
raise

def exponential_backoff(attempt: int) -> int:
Expand Down
4 changes: 2 additions & 2 deletions dbt/adapters/databricks/events/connection_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def __init__(self, connection: Optional[Connection], exception: Exception):


class ConnectionCreateError(ConnectionEvent):
def __init__(self, connection: Optional[Connection], exception: Exception):
def __init__(self, exception: Exception):
super().__init__(
connection, str(SQLErrorEvent(exception, "Exception while trying to create connection"))
None, str(SQLErrorEvent(exception, "Exception while trying to create connection"))
)


Expand Down

0 comments on commit a59e537

Please sign in to comment.