File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -567,15 +567,15 @@ def to_sqlmesh(
567567 self .name ,
568568 "views" if isinstance (kind , ViewKind ) else "ephemeral models" ,
569569 )
570+ elif context .target .dialect == "snowflake" :
571+ logger .warning (
572+ "Ignoring partition_by config for model '%s' targeting %s. The partition_by config is not supported for Snowflake." ,
573+ self .name ,
574+ context .target .dialect ,
575+ )
570576 else :
571577 partitioned_by = []
572- if context .target .dialect == "snowflake" :
573- logger .warning (
574- "Ignoring partition_by config for model '%s' targeting %s. The partition_by config is not supported for Snowflake." ,
575- self .name ,
576- context .target .dialect ,
577- )
578- elif isinstance (self .partition_by , list ):
578+ if isinstance (self .partition_by , list ):
579579 for p in self .partition_by :
580580 try :
581581 partitioned_by .append (d .parse_one (p , dialect = model_dialect ))
You can’t perform that action at this time.
0 commit comments