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