|
| 1 | +# Row Compare |
| 2 | + |
| 3 | +Compare rows using a dataset YAML with file inputs |
| 4 | + |
| 5 | +```text |
| 6 | +Prepared dataset tables: examples.dataset_dataset_1f232b87_previous, examples.dataset_dataset_1f232b87_new |
| 7 | +✅ Ensured schema 'examples' exists |
| 8 | +Joining tables: examples.dataset_dataset_1f232b87_previous and examples.dataset_dataset_1f232b87_new |
| 9 | +Rows only in current dataset: 1 |
| 10 | ++----+-------+--------+--------+ |
| 11 | +| id | name | amount | status | |
| 12 | ++----+-------+--------+--------+ |
| 13 | +| 4 | delta | 40 | open | |
| 14 | ++----+-------+--------+--------+ |
| 15 | +Rows only in previous dataset: 1 |
| 16 | ++----+-------+--------+--------+ |
| 17 | +| id | name | amount | status | |
| 18 | ++----+-------+--------+--------+ |
| 19 | +| 2 | bravo | 20 | open | |
| 20 | ++----+-------+--------+--------+ |
| 21 | +🚨 Differences in values for common rows: 2 rows in total |
| 22 | +
|
| 23 | +📊 Difference statistics by column: |
| 24 | ++-------------+------------+ |
| 25 | +| COLUMN_NAME | diff_count | |
| 26 | ++-------------+------------+ |
| 27 | +| name | 1 | |
| 28 | +| amount | 1 | |
| 29 | ++-------------+------------+ |
| 30 | +
|
| 31 | +✅ Columns with no differences: status |
| 32 | +
|
| 33 | +📋 Sample differences (first 10 rows): |
| 34 | ++----+--------+--------+---------+ |
| 35 | +| id | COLUMN | BEFORE | CURRENT | |
| 36 | ++----+--------+--------+---------+ |
| 37 | +| 1 | name | alpha | alfa | |
| 38 | +| 1 | amount | 10 | 11 | |
| 39 | ++----+--------+--------+---------+ |
| 40 | +🔎 To review the diff, run: sqlcompare analyze-diff compare_examples_dataset_dataset_1f232b87_previous_examples_dataset_dataset_1f232b87_new_20260103_234457_9180044d |
| 41 | +💡 Tips: --stats for per-column counts, --missing-current/--missing-previous for row-only, --column <name> to filter, --list-columns to inspect available fields. |
| 42 | +``` |
0 commit comments