From 0eb85602774a1197537bf599e9a07bc5ad13275b Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Wed, 30 Aug 2023 13:32:20 -0500 Subject: [PATCH] remove extra check --- core/dbt/parser/schema_yaml_readers.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/dbt/parser/schema_yaml_readers.py b/core/dbt/parser/schema_yaml_readers.py index c1c699529a3..032b3a8b99d 100644 --- a/core/dbt/parser/schema_yaml_readers.py +++ b/core/dbt/parser/schema_yaml_readers.py @@ -36,7 +36,7 @@ from dbt.exceptions import DbtInternalError, YamlParseDictError, JSONValidationError from dbt.context.providers import generate_parse_exposure, generate_parse_semantic_models -from dbt.contracts.graph.model_config import MetricConfig, ExposureConfig, SemanticModelConfig +from dbt.contracts.graph.model_config import MetricConfig, ExposureConfig from dbt.context.context_config import ( BaseContextConfigGenerator, ContextConfigGenerator, @@ -570,11 +570,6 @@ def parse_semantic_model(self, unparsed: UnparsedSemanticModel): rendered=False, ) - if not isinstance(config, SemanticModelConfig): - raise DbtInternalError( - f"Calculated a {type(config)} for a semantic model, but expected a SemanticModelConfig" - ) - parsed = SemanticModel( description=unparsed.description, fqn=fqn,