Skip to content

Commit

Permalink
Add a special handler to support the dbt_utils._is_relation macro
Browse files Browse the repository at this point in the history
automatic commit by git-black, original commits:
  f4ca94f
  • Loading branch information
Jacob Beck authored and iknox-fa committed Feb 8, 2022
1 parent 4b31b72 commit d0c159e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/dbt/adapters/base/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ def get(self, key, default=None):
"""Override `.get` to return a metadata object so we don't break
dbt_utils.
"""
if key == 'metadata':
return {
'type': self.__class__.__name__
}
if key == "metadata":
return {"type": self.__class__.__name__}
return super().get(key, default)

def matches(
Expand Down

0 comments on commit d0c159e

Please sign in to comment.