Skip to content

Commit ba08881

Browse files
fix incorrect message
1 parent 10202be commit ba08881

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

sqlmesh/core/console.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,8 @@ def show_table_diff_details(
19901990
"""Display information about which tables are identical and which are diffed"""
19911991

19921992
if (
1993-
len(models_no_diff) < self.TABLE_DIFF_MODELS_DISPLAY_THRESHOLD
1993+
models_no_diff
1994+
and len(models_no_diff) < self.TABLE_DIFF_MODELS_DISPLAY_THRESHOLD
19941995
or self.verbosity == Verbosity.VERY_VERBOSE
19951996
):
19961997
m_tree = Tree("\n[b]Models without changes:")

sqlmesh/core/context.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,12 +1660,11 @@ def table_diff(
16601660
else:
16611661
models_no_diff.append(model_fqn)
16621662

1663-
self.console.show_table_diff_details(
1664-
models_no_diff,
1665-
[model[0].name for model in models_to_diff],
1666-
)
1667-
16681663
if models_to_diff:
1664+
self.console.show_table_diff_details(
1665+
models_no_diff,
1666+
[model[0].name for model in models_to_diff],
1667+
)
16691668
if models_without_grain:
16701669
model_names = "\n".join(
16711670
f"─ {model.name} \n at '{model._path}'" for model in models_without_grain

0 commit comments

Comments
 (0)