Skip to content

Commit 6910716

Browse files
committed
log messaging improvements
1 parent 6b6ec24 commit 6910716

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sqlmesh/dbt/model.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,9 @@ def to_sqlmesh(
529529
partitioned_by.append(self._big_query_partition_by_expr(context))
530530
else:
531531
logger.warning(
532-
"Ignoring partition_by config for model '%s' targeting %s; it is only supported for BigQuery.", self.name, context.target.dialect
532+
"Ignoring partition_by config for model '%s' targeting %s. The format of the config field is only supported for BigQuery.",
533+
self.name,
534+
context.target.dialect,
533535
)
534536

535537
if partitioned_by:
@@ -538,7 +540,8 @@ def to_sqlmesh(
538540
if self.cluster_by:
539541
if isinstance(kind, ViewKind):
540542
logger.warning(
541-
f"Ignoring cluster_by config for model '{self.name}'; cluster_by is not supported for views."
543+
"Ignoring cluster_by config for model '%s'; cluster_by is not supported for views.",
544+
self.name,
542545
)
543546
else:
544547
clustered_by = []

0 commit comments

Comments
 (0)