Skip to content

fix!: make repr deterministic for fingerprinting#4925

Merged
eakmanrq merged 2 commits intomainfrom
eakmanrq/make_repr_determinstic
Jul 8, 2025
Merged

fix!: make repr deterministic for fingerprinting#4925
eakmanrq merged 2 commits intomainfrom
eakmanrq/make_repr_determinstic

Conversation

@eakmanrq
Copy link
Collaborator

@eakmanrq eakmanrq commented Jul 7, 2025

Prior to this PR, models could show changes to __sqlmesh__vars__ even though there is not an actual change to the model. Looking at the code and it appears that the dictionary is not deterministic so this PR aims to address that shortcoming.

@eakmanrq eakmanrq marked this pull request as draft July 7, 2025 18:49
@eakmanrq eakmanrq force-pushed the eakmanrq/make_repr_determinstic branch 4 times, most recently from 892699d to 46c0833 Compare July 7, 2025 22:43
@eakmanrq eakmanrq force-pushed the eakmanrq/make_repr_determinstic branch from 46c0833 to cefe998 Compare July 8, 2025 14:53
@eakmanrq eakmanrq marked this pull request as ready for review July 8, 2025 14:53
@eakmanrq eakmanrq force-pushed the eakmanrq/make_repr_determinstic branch from cefe998 to b6d5b68 Compare July 8, 2025 15:07
Copy link
Contributor

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me, nice!

@eakmanrq eakmanrq force-pushed the eakmanrq/make_repr_determinstic branch from b6d5b68 to 78cdac7 Compare July 8, 2025 17:01
@eakmanrq eakmanrq merged commit 537a311 into main Jul 8, 2025
27 checks passed
@eakmanrq eakmanrq deleted the eakmanrq/make_repr_determinstic branch July 8, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants