Skip to content

Conversation

@erindru
Copy link
Collaborator

@erindru erindru commented Jun 26, 2025

Prior to this, when using environment_suffix_target: catalog against a model in the default catalog, the CLI would give output like:

$ sqlmesh plan erin
...SNIP...
Models needing backfill:
└── none__erin.sqlmesh_example.incremental_model: [2020-01-01 - 2025-04-07]
Apply - Backfill Tables [y/n]: y

This was due to an output optimisation where we hid the catalog as unnecessary information if it matched the default catalog.

However, environment_suffix_target: catalog relies on the default catalog being present because it needs it to generate the catalog name for the virtual environment.

This PR fixes the output:

$ sqlmesh plan erin
...SNIP...
Models needing backfill:
└── tobiko-1__erin.sqlmesh_example.incremental_model: [2020-01-01 - 2025-04-07]
Apply - Backfill Tables [y/n]: y

Note that this was a display-only issue, the SQL queries being executed in the background still contained the correct catalog

@erindru erindru merged commit 03e3429 into main Jun 26, 2025
25 checks passed
@erindru erindru deleted the erin/fix-none-catalog branch June 26, 2025 19:14
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.

3 participants