Skip to content

fix: load materializations during cleanup - #6162

Open
lafirm wants to merge 1 commit into
SQLMesh:mainfrom
lafirm:fix/load-materializations-during-cleanup
Open

lafirm wants to merge 1 commit into
SQLMesh:mainfrom
lafirm:fix/load-materializations-during-cleanup

Conversation

@lafirm

@lafirm lafirm commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Fixes this issue #5761.

And its a new version of this PR #5723 - so, it can be closed.

Description

Load custom materialization during cleanup processes so janitor and destroy commands can delete custom-materialized models when the context uses load=False.

Test Plan

  • Passed: python -m pytest tests/core/integration/test_aux_commands.py::test_janitor_loads_materialization -q --tb=short --disable-warnings

Checklist

  • I have run make style and fixed any issues
  • I have added tests for my changes (if applicable)
  • All existing tests pass (make fast-test)
  • My commits are signed off (git commit -s) per the DCO

Signed-off-by: lafirm <136463254+lafirm@users.noreply.github.com>
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.

1 participant