File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4268,7 +4268,7 @@ def test_dbt_dialect_with_normalization_strategy(init_and_plan_context: t.Callab
42684268 context , _ = init_and_plan_context (
42694269 "tests/fixtures/dbt/sushi_test" , config = "test_config_with_normalization_strategy"
42704270 )
4271- assert context .default_dialect == "duckdb,normalization_strategy=UPPERCASE "
4271+ assert context .default_dialect == "duckdb,normalization_strategy=LOWERCASE "
42724272
42734273
42744274@pytest .mark .parametrize (
Original file line number Diff line number Diff line change @@ -2221,7 +2221,7 @@ def my_model(context, **kwargs):
22212221 m = model .get_registry ()["my_model" ].model (
22222222 module_path = Path ("." ),
22232223 path = Path ("." ),
2224- dialect = "duckdb" ,
2224+ dialect = "duckdb,normalization_strategy=LOWERCASE " ,
22252225 )
22262226
22272227 assert list (m .pre_statements ) == [
@@ -2231,14 +2231,14 @@ def my_model(context, **kwargs):
22312231 d .parse_one ("DROP TABLE x" ),
22322232 ]
22332233 assert m .enabled
2234- assert m .dialect == "duckdb"
2234+ assert m .dialect == "duckdb,normalization_strategy=lowercase "
22352235 assert m .depends_on == {'"foo"' , '"bar"."baz"' }
2236- assert m .columns_to_types == {"col " : exp .DataType .build ("int" )}
2236+ assert m .columns_to_types == {"COL " : exp .DataType .build ("int" )}
22372237 assert_exp_eq (
22382238 m .ctas_query (),
22392239 """
22402240SELECT
2241- CAST(NULL AS INT) AS "col "
2241+ CAST(NULL AS INT) AS "COL "
22422242FROM (VALUES
22432243 (1)) AS t(dummy)
22442244WHERE
Original file line number Diff line number Diff line change 1616test_config_with_normalization_strategy = sqlmesh_config (
1717 Path (__file__ ).parent ,
1818 variables = variables ,
19- model_defaults = ModelDefaultsConfig (dialect = "duckdb,normalization_strategy=UPPERCASE " ),
19+ model_defaults = ModelDefaultsConfig (dialect = "duckdb,normalization_strategy=LOWERCASE " ),
2020)
You can’t perform that action at this time.
0 commit comments