Skip to content

Commit e42ad82

Browse files
fix comments
1 parent 8a9471c commit e42ad82

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
@@ -507,5 +507,6 @@ def _normalize(self, input_table: exp.Table) -> exp.Table:
507507
return normalized_table
508508

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

0 commit comments

Comments
 (0)