@@ -813,7 +813,11 @@ class TestPartitionPropertyBuilding:
813813 # Expression partitioning - multi-column
814814 ("(year, month)" , "PARTITION BY `year`, `month`" , "PARTITION BY (`year`, `month`)" ),
815815 # Expression partitioning - multi-column with func
816- ("(date_trunc('day', dt), region)" , "PARTITION BY DATE_TRUNC('DAY', `dt`), `region`" , None ),
816+ (
817+ "(date_trunc('day', dt), region)" ,
818+ "PARTITION BY DATE_TRUNC('DAY', `dt`), `region`" ,
819+ None ,
820+ ),
817821 # RANGE partitioning
818822 ("RANGE (dt)" , "PARTITION BY RANGE (`dt`) ()" , None ),
819823 # LIST partitioning
@@ -967,7 +971,11 @@ def test_partitioned_by_as_model_parameter(
967971 )
968972
969973 sql = to_sql_calls (adapter )[0 ]
970- assert "PARTITION BY (year, month)" in sql or "PARTITION BY `year`, `month`" in sql or "PARTITION BY (`year`, `month`)" in sql
974+ assert (
975+ "PARTITION BY (year, month)" in sql
976+ or "PARTITION BY `year`, `month`" in sql
977+ or "PARTITION BY (`year`, `month`)" in sql
978+ )
971979
972980 def test_partitions_value_forms (
973981 self , make_mocked_engine_adapter : t .Callable [..., StarRocksEngineAdapter ]
0 commit comments