Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit a8d9860

Browse files
committed
pass children schema and diff to parent InfoTree
1 parent 84b8711 commit a8d9860

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

data_diff/info_tree.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ def update_from_children(self, child_infos):
3030
# self.diff = list(chain(*[c.diff for c in child_infos]))
3131
self.diff_count = sum(c.diff_count for c in child_infos if c.diff_count is not None)
3232
self.is_diff = any(c.is_diff for c in child_infos)
33+
self.diff_schema = next((child.diff_schema for child in child_infos if child.diff_schema is not None),
34+
None)
35+
self.diff = sum((c.diff for c in child_infos if c.diff is not None), [])
3336

3437
self.rowcounts = {
3538
1: sum(c.rowcounts[1] for c in child_infos if c.rowcounts),

0 commit comments

Comments
 (0)