Skip to content

fix(clickhouse): initialize virtual catalog for cleanup - #5941

Open
mday-io wants to merge 2 commits into
SQLMesh:mainfrom
mday-io:mday/fix-clickhouse-cleanup-catalog
Open

fix(clickhouse): initialize virtual catalog for cleanup#5941
mday-io wants to merge 2 commits into
SQLMesh:mainfrom
mday-io:mday/fix-clickhouse-cleanup-catalog

Conversation

@mday-io

@mday-io mday-io commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • initialize virtual catalogs before expired-environment view cleanup
  • verify gateway-managed ClickHouse cleanup emits a two-part DROP VIEW

Why

Cleanup-only commands could select the model's ClickHouse gateway before virtual-catalog discovery had initialized its adapter. The stored three-part view name was therefore rejected instead of having its synthetic catalog stripped.

Validation

  • make style
  • make fast-test
  • pytest tests/core/test_context.py
  • pytest tests/core/test_janitor.py

Closes #5939

mday-io added 2 commits August 5, 2026 16:45
Signed-off-by: mday-io <mdaytn@gmail.com>
Signed-off-by: mday-io <mdaytn@gmail.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.

ClickHouse virtual catalog is not initialized during expired environment cleanup

1 participant