Skip to content

Commit

Permalink
Fixed error handling and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
moomindani committed Feb 20, 2025
1 parent 81d9c0d commit f69836a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/adapters/glue/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def check_schema_exists(self, database: str, schema: str) -> bool:
else:
return False
except Exception as e:
logger.error(f"Error checking schema existence: {str(e)}")
logger.error(e)

def check_relation_exists(self, relation: BaseRelation) -> bool:
try:
Expand Down
1 change: 1 addition & 0 deletions dbt/include/glue/macros/materializations/snapshot.sql
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@


{% materialization snapshot, adapter='glue' %}

{%- set target_table = model.get('alias', model.get('name')) -%}

{%- set strategy_name = config.get('strategy') -%}
Expand Down

0 comments on commit f69836a

Please sign in to comment.