Skip to content

Commit

Permalink
Log Hive.get_schema errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Dec 20, 2024
1 parent ab7ae95 commit 1b123b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onetl/connection/db_connection/hive/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ def write_df_to_target(
table_exists = True

log.info("|%s| Table %r already exists", self.__class__.__name__, target)
except Exception:
except Exception as e:
log.debug("|%s| Cannot get schema of table %r: %s", self.__class__.__name__, target, e)
table_exists = False

# https://stackoverflow.com/a/72747050
Expand Down

0 comments on commit 1b123b1

Please sign in to comment.