Skip to content

Commit

Permalink
remove extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Aug 30, 2023
1 parent 5a662b0 commit 0eb8560
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/dbt/parser/schema_yaml_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 0eb8560

Please sign in to comment.