Skip to content

Commit

Permalink
Fixed error handling and logging (#520)
Browse files Browse the repository at this point in the history
* Fixed error handling and logging
  • Loading branch information
moomindani authored Feb 20, 2025
1 parent b1b084b commit 5c8750e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Added configuration property to allow spark casting of seed column types.
- Fix the get_columns_in_relation function error when on_schema_change is specified.
- Upgrade dependencies: dbt-core 1.9.2, dbt-spark 1.9.1, dbt-tests-adapter 1.11.0, mypy 1.15.0, moto 5.0.28, and black 25.1.0.
- Fix error handling and logging

## v1.9.0
- Allow to load big seed files
Expand Down
3 changes: 3 additions & 0 deletions dbt/adapters/glue/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ def glue_rename_relation(self, from_relation, to_relation):

def get_relation(self, database, schema, identifier):
session, client = self.get_connection()
if not identifier:
logger.debug(f"get_relation returns None for schema : {schema} as identifier is not set")
return None
try:
response = client.get_table(
DatabaseName=schema,
Expand Down

0 comments on commit 5c8750e

Please sign in to comment.