We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4e0859 commit d31de21Copy full SHA for d31de21
2 files changed
sqlmesh/core/model/definition.py
@@ -2040,7 +2040,7 @@ def load_sql_based_model(
2040
2041
MODEL (
2042
name sqlmesh_example.full_model, --model name
2043
- kind VIEW, --materialization
+ kind FULL, --materialization
2044
cron '@daily', --schedule
2045
);
2046
tests/core/test_model.py
@@ -613,7 +613,7 @@ def test_unordered_model_statements():
613
614
with pytest.raises(ConfigError) as ex:
615
load_sql_based_model(expressions)
616
- assert "MODEL statement is required" in str(ex.value)
+ assert "Please add a required MODEL block at top of the file. Example:" in str(ex.value)
617
618
619
def test_no_query():
0 commit comments