diff --git a/core/dbt/artifacts/resources/v1/components.py b/core/dbt/artifacts/resources/v1/components.py index 8eb43f35d8e..5d138c9bfde 100644 --- a/core/dbt/artifacts/resources/v1/components.py +++ b/core/dbt/artifacts/resources/v1/components.py @@ -12,7 +12,7 @@ from dbt_common.dataclass_schema import ExtensibleDbtClassMixin, dbtClassMixin from dbt_semantic_interfaces.type_enums import TimeGranularity -NodeVersion = Union[str, float] +NodeVersion = Union[int, float, str] @dataclass diff --git a/tests/unit/utils/manifest.py b/tests/unit/utils/manifest.py index 0950f68ebb5..26b564209be 100644 --- a/tests/unit/utils/manifest.py +++ b/tests/unit/utils/manifest.py @@ -470,7 +470,7 @@ def make_semantic_model( return SemanticModel( name=name, resource_type=NodeType.SemanticModel, - model=model, + model=model.name, node_relation=NodeRelation( alias=model.alias, schema_name="dbt",