Skip to content

Commit

Permalink
fixing compare matching rows for spark compares and SF compare
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaffar committed Feb 11, 2025
1 parent 4ccf73f commit 2f6a2ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion datacompy/snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def count_matching_rows(self) -> int:
" and ".join(conditions)
).count()
else:
match_columns_count = 0
match_columns_count = self.intersect_rows.count()
return match_columns_count

def intersect_rows_match(self) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion datacompy/spark/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def count_matching_rows(self) -> bool:
.shape[0]
)
else:
match_columns_count = 0
self.intersect_rows.shape[0]
return match_columns_count

def intersect_rows_match(self) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion datacompy/spark/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def count_matching_rows(self) -> int:
" and ".join(conditions)
).count()
else:
match_columns_count = 0
match_columns_count = self.intersect_rows.count()
return match_columns_count

def intersect_rows_match(self) -> bool:
Expand Down

0 comments on commit 2f6a2ce

Please sign in to comment.