Skip to content

Unify output formats #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2023
Merged

Unify output formats #3

merged 1 commit into from
Feb 24, 2023

Conversation

dbeatty10
Copy link
Owner

As a follow-up to #2, make all 3 of the pre-existing format options available when using --dbt.

Usage

Usage for --dbt mode:

Default

$ data-diff --dbt
Found 1 successful model runs from the last dbt command.
- 1, black
+ 1, orange

image

JSON

$ data-diff --dbt --json 
Found 1 successful model runs from the last dbt command.
["-", ["1", "black"]]
["+", ["1", "orange"]]

image

Stats

$ data-diff --dbt --stats
Found 1 successful model runs from the last dbt command.
2 rows in table A
2 rows in table B
0 rows exclusive to table A (not present in B)
0 rows exclusive to table B (not present in A)
1 rows updated
1 rows unchanged
50.00% difference score

Extra-Info:
  diff_counts = {'id_a': 0, 'color_a': 0}
  exclusive_count = 0
  table1_count = 2
  table2_count = 2
  validated_unique_keys = [['id'], ['id']]

image

@dbeatty10 dbeatty10 marked this pull request as ready for review February 24, 2023 00:13
@dbeatty10 dbeatty10 merged commit 64ab5b1 into master Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant