Skip to content

Commit

Permalink
min bisection factor is 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kantselovich committed Jan 11, 2025
1 parent 724bb0f commit 1974b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_diff/diff_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ def calculate_bisection_factor(self, rows):
rows: amount of rows in the given table or segment
"""
ratio = rows / self.segment_rows
if 0 < ratio < 1:
return 1
if 0 < ratio < 2:
return 2
else
return round(ratio)

Expand Down

0 comments on commit 1974b43

Please sign in to comment.