From b04b7d55b609a5606689482599c642900e76c983 Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Thu, 12 Aug 2021 18:18:28 -0400 Subject: [PATCH] Use is_relational check for schema caching (#3716) * Use is_relational check for schema caching * Fix flake8 * Update changelog automatic commit by git-black, original commits: b633adb8813ccfdf52aa421864ef172a2b422a22 f80a759488cf69664fd60eadede753fa9026ee2a --- core/dbt/adapters/base/impl.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/dbt/adapters/base/impl.py b/core/dbt/adapters/base/impl.py index 2f7ce215a34..0d2e085c739 100644 --- a/core/dbt/adapters/base/impl.py +++ b/core/dbt/adapters/base/impl.py @@ -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: