Skip to content

Commit 5ad039f

Browse files
remove without changes section
1 parent 0a8d0f5 commit 5ad039f

2 files changed

Lines changed: 2 additions & 19 deletions

File tree

sqlmesh/core/console.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,9 @@ def stop_table_diff_progress(self, success: bool) -> None:
250250
@abc.abstractmethod
251251
def show_table_diff_details(
252252
self,
253-
models_no_diff: t.List[str],
254253
models_to_diff: t.List[str],
255254
) -> None:
256-
"""Display information about which tables are identical and which are diffed"""
255+
"""Display information about which tables are going to be diffed"""
257256

258257
@abc.abstractmethod
259258
def show_table_diff_summary(self, table_diff: TableDiff) -> None:
@@ -718,7 +717,6 @@ def stop_table_diff_progress(self, success: bool) -> None:
718717

719718
def show_table_diff_details(
720719
self,
721-
models_no_diff: t.List[str],
722720
models_to_diff: t.List[str],
723721
) -> None:
724722
pass
@@ -1984,20 +1982,9 @@ def loading_stop(self, id: uuid.UUID) -> None:
19841982

19851983
def show_table_diff_details(
19861984
self,
1987-
models_no_diff: t.List[str],
19881985
models_to_diff: t.List[str],
19891986
) -> None:
1990-
"""Display information about which tables are identical and which are diffed"""
1991-
1992-
if (
1993-
models_no_diff
1994-
and len(models_no_diff) < self.TABLE_DIFF_MODELS_DISPLAY_THRESHOLD
1995-
or self.verbosity == Verbosity.VERY_VERBOSE
1996-
):
1997-
m_tree = Tree("\n[b]Models without changes:")
1998-
for m in models_no_diff:
1999-
m_tree.add(f"[{self.TABLE_DIFF_SOURCE_BLUE}]{m}[/{self.TABLE_DIFF_SOURCE_BLUE}]")
2000-
self._print(m_tree)
1987+
"""Display information about which tables are going to be diffed"""
20011988

20021989
if models_to_diff:
20031990
m_tree = Tree("\n[b]Models to compare:")

sqlmesh/core/context.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,6 @@ def table_diff(
16241624
models_to_diff: t.List[
16251625
t.Tuple[Model, EngineAdapter, str, str, t.Optional[t.List[str] | exp.Condition]]
16261626
] = []
1627-
models_no_diff: t.List[str] = []
16281627
models_without_grain: t.List[Model] = []
16291628
source_snapshots_to_name = {
16301629
snapshot.name: snapshot for snapshot in source_env.snapshots
@@ -1656,12 +1655,9 @@ def table_diff(
16561655
models_to_diff.append((model, adapter, source, target, model_on))
16571656
if not model_on:
16581657
models_without_grain.append(model)
1659-
else:
1660-
models_no_diff.append(model_fqn)
16611658

16621659
if models_to_diff:
16631660
self.console.show_table_diff_details(
1664-
models_no_diff,
16651661
[model[0].name for model in models_to_diff],
16661662
)
16671663
if models_without_grain:

0 commit comments

Comments
 (0)