Skip to content

table_diff: Only show a sample for columns that actually changed #5109

@erindru

Description

@erindru

Given the following scenario:

  • Table A has 10 columns
  • Table B has 10 columns
  • sqlmesh table_diff A:B --show-sample shows 8 columns are identical (100% match) and 2 columns have differences (<100% match)

When we print the sample data tables for each column, we still print 10 tables even though only 2 columns had changes.

This results in a string of empty tables that create visual noise:

Image

We should only output sample tables for the columns that changed

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImprovementImproves existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions