This repository was archived by the owner on May 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -165,8 +165,8 @@ def get_stats_string(self, is_dbt: bool = False):
165
165
166
166
return string_output
167
167
168
- def get_stats_dict (self ):
169
- diff_stats = self ._get_stats ()
168
+ def get_stats_dict (self , is_dbt : bool = False ):
169
+ diff_stats = self ._get_stats (is_dbt )
170
170
json_output = {
171
171
"rows_A" : diff_stats .table1_count ,
172
172
"rows_B" : diff_stats .table2_count ,
@@ -177,6 +177,8 @@ def get_stats_dict(self):
177
177
"total" : sum (diff_stats .diff_by_sign .values ()),
178
178
"stats" : self .stats ,
179
179
}
180
+ if diff_stats .extra_column_diffs :
181
+ json_output ["values" ] = diff_stats .extra_column_diffs
180
182
181
183
return json_output
182
184
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def jsonify(
51
51
52
52
summary = None
53
53
if with_summary :
54
- summary = _jsonify_diff_summary (diff .get_stats_dict ())
54
+ summary = _jsonify_diff_summary (diff .get_stats_dict (is_dbt = True ))
55
55
56
56
columns = None
57
57
if with_columns :
@@ -258,7 +258,7 @@ def _jsonify_diff_summary(stats_dict: dict) -> JsonDiffSummary:
258
258
updated = stats_dict ["updated" ],
259
259
unchanged = stats_dict ["unchanged" ],
260
260
),
261
- stats = Stats (diffCounts = stats_dict ["stats" ][ "diff_counts " ]),
261
+ stats = Stats (diffCounts = stats_dict ["values " ]),
262
262
)
263
263
264
264
You can’t perform that action at this time.
0 commit comments