Skip to content

Commit

Permalink
Use is_relational check for schema caching (#3716)
Browse files Browse the repository at this point in the history
* Use is_relational check for schema caching

* Fix flake8

* Update changelog

automatic commit by git-black, original commits:
  b633adb
  f80a759
  • Loading branch information
jtcohen6 authored and iknox-fa committed Feb 8, 2022
1 parent 6fd8349 commit b04b7d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/dbt/adapters/base/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,7 @@ def _get_cache_schemas(self, manifest: Manifest) -> Set[BaseRelation]:
return {
self.Relation.create_from(self.config, node).without_identifier()
for node in manifest.nodes.values()
if (
node.is_relational and not node.is_ephemeral_model
)
if (node.is_relational and not node.is_ephemeral_model)
}

def _get_catalog_schemas(self, manifest: Manifest) -> SchemaSearchMap:
Expand Down

0 comments on commit b04b7d5

Please sign in to comment.