Skip to content

Commit

Permalink
Returned Athena query debug
Browse files Browse the repository at this point in the history
  • Loading branch information
svdimchenko committed Sep 6, 2023
1 parent b7b48af commit fd5dc04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dbt/adapters/athena/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,7 @@ def _get_table_input(table: TableTypeDef) -> TableInputTypeDef:
def run_query_with_partitions_limit_catching(self, sql: str) -> str:
conn = self.connections.get_thread_connection()
cursor = conn.handle.cursor()
LOGGER.debug(f"Running Athena query:\n{sql}")
try:
cursor.execute(sql, catch_partitions_limit=True)
except OperationalError as e:
Expand Down

0 comments on commit fd5dc04

Please sign in to comment.