We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e57d4c commit 5cf8d26Copy full SHA for 5cf8d26
tests/dbt/test_transformation.py
@@ -1881,6 +1881,17 @@ def test_partition_by(sushi_test_project: Project):
1881
)
1882
assert model_config.to_sqlmesh(context).partitioned_by == []
1883
1884
+ with pytest.raises(ConfigError, match="Unexpected data_type 'string' in partition_by"):
1885
+ ModelConfig(
1886
+ name="model",
1887
+ alias="model",
1888
+ schema="test",
1889
+ package_name="package",
1890
+ materialized="table",
1891
+ partition_by={"field": "ds", "data_type": "string"},
1892
+ sql="""SELECT 1 AS one, ds FROM foo""",
1893
+ )
1894
+
1895
1896
@pytest.mark.xdist_group("dbt_manifest")
1897
def test_partition_by_none(sushi_test_project: Project):
0 commit comments