From 11126ec3253437510dc8ceed34d38e47ff465e2f Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Tue, 12 Mar 2024 15:33:25 -0400 Subject: [PATCH] ensure relation_configs and relation inputs to get_filtered_catalog are same length --- dbt/adapters/base/impl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbt/adapters/base/impl.py b/dbt/adapters/base/impl.py index c6091887..18fb2611 100644 --- a/dbt/adapters/base/impl.py +++ b/dbt/adapters/base/impl.py @@ -1148,6 +1148,9 @@ def get_filtered_catalog( used_schemas: FrozenSet[Tuple[str, str]], relations: Optional[Set[BaseRelation]] = None, ): + if len(relation_configs) != len(relations): + raise DbtInternalError("get_filtered_catalog expects 'relation_configs' and 'relations' to represent the same set for catalog generation") + catalogs: agate.Table if ( relations is None