Skip to content

Commit

Permalink
Include grains into the metadata hash
Browse files Browse the repository at this point in the history
  • Loading branch information
izeigerman committed Feb 7, 2025
1 parent d689a79 commit 6df4a98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions sqlmesh/core/model/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,7 @@ def metadata_hash(self) -> str:
str(self.allow_partials),
gen(self.session_properties_) if self.session_properties_ else None,
str(self.validate_query) if self.validate_query is not None else None,
*[gen(g) for g in self.grains],
]

for audit_name, audit_args in sorted(self.audits, key=lambda a: a[0]):
Expand Down
5 changes: 5 additions & 0 deletions sqlmesh/migrations/v0070_include_grains_in_metadata_hash.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""Include grains in the metadata hash."""


def migrate(state_sync, **kwargs): # type: ignore
pass

0 comments on commit 6df4a98

Please sign in to comment.