Skip to content

Commit 0302771

Browse files
committed
pr feedback
1 parent 8bb1f16 commit 0302771

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sqlmesh/dbt/model.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)