You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So given this entry in external_models.yaml of the example project:
- name: sqlmesh_example.full_modelstart: 1 week agocolumns:
customer_id: intzip: text
The resulting error is:
sqlmesh.utils.errors.TestError: Model '"db"."sqlmesh_example"."full_model"' is an unsupported model type for testing at /<path>/playground/tests/test_full_model.yaml
I believe this happens because we're using update in this section:
So the SQL kind is overwritten by the external kind, which can't be unit-tested, hence that cryptic error message. Is the usage of update in the linked section intentional? I'd assume that we want to enforce the unique name constraint for models across all kinds.
A project has a model named
example.model
. Someone accidentally addsexample.model
to the external models config file.Currently, this generates unclear output - sqlmesh should detect and warn so users can resolve.
The text was updated successfully, but these errors were encountered: