Skip to content

Commit 8be7ed7

Browse files
Add a debug log about an Athena execution error (#1221)
Co-authored-by: Colin Rogers <[email protected]>
1 parent 7a52449 commit 8be7ed7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dbt-athena/src/dbt/adapters/athena/connections.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ def execute_with_iceberg_retries() -> AthenaCursor:
222222
self._retry_config,
223223
)
224224
return self
225+
226+
LOGGER.debug(f"Athena query failed: {query_execution.state_change_reason}")
225227
raise OperationalError(query_execution.state_change_reason)
226228

227229
return execute_with_iceberg_retries()

0 commit comments

Comments
 (0)