Skip to content

Commit a36a913

Browse files
committed
add comment
1 parent 04999ed commit a36a913

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sqlmesh/dbt/model.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ def _validate_check_cols(cls, v: t.Union[str, t.List[str]]) -> t.Union[str, t.Li
175175
@field_validator("updated_at", mode="before")
176176
@classmethod
177177
def _validate_updated_at(cls, v: t.Optional[str]) -> t.Optional[str]:
178+
"""
179+
Extract column name if updated_at contains a cast.
180+
181+
SCDType2ByTimeKind and SCDType2ByColumnKind expect a column, and the casting is done later.
182+
"""
178183
if v is None:
179184
return None
180185
parsed = d.parse_one(v)

0 commit comments

Comments
 (0)