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