Skip to content

Commit 9f62e95

Browse files
fix comments
1 parent e181158 commit 9f62e95

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sqlmesh/core/plan/definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Plan(PydanticModel, frozen=True):
7171

7272
user_provided_flags: t.Optional[t.Dict[str, UserProvidedFlags]] = None
7373
selected_models: t.Optional[t.Set[str]] = None
74-
"""Models that have been selected for this plan (used for dbt selected_resouces)"""
74+
"""Models that have been selected for this plan (used for dbt selected_resources)"""
7575

7676
@cached_property
7777
def start(self) -> TimeLike:

sqlmesh/dbt/adapter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,5 +517,6 @@ def _normalize(self, input_table: exp.Table) -> exp.Table:
517517
return normalized_table
518518

519519
def _dbt_model_id(self, sqlmesh_model_name: str) -> str:
520+
# Model prefix is needed to correspond to the key in the nodes within the dbt context variable
520521
parts = [part.strip('"') for part in sqlmesh_model_name.split(".")]
521522
return f"model.{parts[0]}.{parts[-1]}"

0 commit comments

Comments
 (0)