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

Commit a79ba22

Browse files
pik94erezsh
authored andcommitted
Use NULL instead of zero in when calculating counts and checksums
1 parent 2ce1710 commit a79ba22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_diff/table_segment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def count_and_checksum(self) -> Tuple[int, int]:
218218

219219
if count:
220220
assert checksum, (count, checksum)
221-
return count or 0, checksum if checksum is None else int(checksum)
221+
return count or 0, None if not checksum else int(checksum)
222222

223223
def query_key_range(self) -> Tuple[int, int]:
224224
"""Query database for minimum and maximum key. This is used for setting the initial bounds."""

0 commit comments

Comments
 (0)