Skip to content

Commit

Permalink
fix NPE while get relation
Browse files Browse the repository at this point in the history
  • Loading branch information
TalkWIthKeyboard committed May 15, 2022
1 parent 9fc5732 commit 6cd6f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/adapters/spark/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def get_relation(

cached = super().get_relation(database, schema, identifier)
logger.info(f">>> get_relation: {cached.render() if cached is not None else 'Empty'}")
return self._set_relation_information(cached)
return self._set_relation_information(cached) if cached else None

def parse_describe_extended(
self, relation: Relation, raw_rows: List[agate.Row]
Expand Down

0 comments on commit 6cd6f6d

Please sign in to comment.