Skip to content

Commit

Permalink
Fix NodeVersion definition, make_semantic_model utility
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Nov 25, 2024
1 parent 407f6ca commit 261e124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/dbt/artifacts/resources/v1/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/utils/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 261e124

Please sign in to comment.