Skip to content

Commit 0eb8560

Browse files
committed
remove extra check
1 parent 5a662b0 commit 0eb8560

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

core/dbt/parser/schema_yaml_readers.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from dbt.exceptions import DbtInternalError, YamlParseDictError, JSONValidationError
3737
from dbt.context.providers import generate_parse_exposure, generate_parse_semantic_models
3838

39-
from dbt.contracts.graph.model_config import MetricConfig, ExposureConfig, SemanticModelConfig
39+
from dbt.contracts.graph.model_config import MetricConfig, ExposureConfig
4040
from dbt.context.context_config import (
4141
BaseContextConfigGenerator,
4242
ContextConfigGenerator,
@@ -570,11 +570,6 @@ def parse_semantic_model(self, unparsed: UnparsedSemanticModel):
570570
rendered=False,
571571
)
572572

573-
if not isinstance(config, SemanticModelConfig):
574-
raise DbtInternalError(
575-
f"Calculated a {type(config)} for a semantic model, but expected a SemanticModelConfig"
576-
)
577-
578573
parsed = SemanticModel(
579574
description=unparsed.description,
580575
fqn=fqn,

0 commit comments

Comments
 (0)