-
Notifications
You must be signed in to change notification settings - Fork 358
Closed
Description
plan --select-model A dev creates a dev environment, even if there are no changes to the selected model compared to prod. However, it is not possible to add an unmodified model B to the existing environment dev with plan --select-model B dev. I'm unsure whether this is intended.
How to reproduce
Execute the following commands (demo duckdb project):
sqlmesh initsqlmesh plansqlmesh plan --select-model sqlmesh_example.incremental_model devsqlmesh plan --select-model sqlmesh_example.incremental_model --select-model sqlmesh_example.full_model dev
Current behavior
Step 4. results in
No changes to plan: project files match the
devenvironment
Expected behavior
Model sqlmesh_example.full_model gets added to the dev virtual environment.
Notes
- Adding unmodified models to an existing virtual environment can be useful, I think (e.g. when working with
pinned_environmentsor for testing purposes). - If step 3. is omitted, the
devenvironment will be created with both modelssqlmesh_example.incremental_modelandsqlmesh_example.full_model. So, one possible workaround is to create a new virtual environment instead of updating the old one.
Sqlmesh version
0.224.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels