Skip to content

Fix: load materializations before run janitor#5723

Open
cnahed-kpler wants to merge 1 commit into
SQLMesh:mainfrom
cnahed-kpler:main
Open

Fix: load materializations before run janitor#5723
cnahed-kpler wants to merge 1 commit into
SQLMesh:mainfrom
cnahed-kpler:main

Conversation

@cnahed-kpler

Copy link
Copy Markdown

This PR makes sure materializations are loaded before cleanup-related logic runs.
That matters because janitor/cleanup operations depend on materialization definitions already being available.

This occurs here: https://github.com/TobikoData/sqlmesh/blob/6e69ce6cfbceab8e7c5f43cdaa7ac7a5d9015cd6/sqlmesh/core/snapshot/evaluator.py#L2877

@CLAassistant

CLAassistant commented Mar 9, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@StuffbyYuki

Copy link
Copy Markdown
Collaborator

@cnahed-kpler could you take a look at resolving conflicts?

@StuffbyYuki

Copy link
Copy Markdown
Collaborator

I just kicked off the workflows. Once they all pass, I'll merge!

@StuffbyYuki

Copy link
Copy Markdown
Collaborator

@cnahed-kpler Can you add DCO checks?

@StuffbyYuki

Copy link
Copy Markdown
Collaborator

You can ignore those failed style ci tests, there was a bug from another merge, but the fix got merged.

@StuffbyYuki

Copy link
Copy Markdown
Collaborator

@cnahed-kpler Just following up

@lafirm

lafirm commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

This PR should close this issue #5761 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants