diff --git a/piperider_cli/dbt/changeset.py b/piperider_cli/dbt/changeset.py index 40a70fdab..29f284bd3 100644 --- a/piperider_cli/dbt/changeset.py +++ b/piperider_cli/dbt/changeset.py @@ -748,8 +748,11 @@ def all_tests(c: ChangeUnit): if len(changeset) > 50: remainings = len(changeset) - 50 - mt.add_row( - ['', f'{remainings} more potentially impacted models', '', '', '', '', '']) + footer = ['', f'{remainings} more potentially impacted models'] + if mt.num_of_columns > 2: + footer += [''] * (mt.num_of_columns - 2) + + mt.add_row(footer) out(mt.build()) @@ -821,8 +824,11 @@ def impact(c: ChangeUnit): if len(changeset) > 50: remainings = len(changeset) - 50 - mt.add_row( - ['', f'{remainings} more potentially impacted metrics', '']) + footer = ['', f'{remainings} more potentially impacted metrics'] + if mt.num_of_columns > 2: + footer += [''] * (mt.num_of_columns - 2) + + mt.add_row(footer) out(mt.build())