Skip to content

Commit 5b7d66b

Browse files
pik94erezsh
authored andcommitted
Fix hashing
1 parent ced76e6 commit 5b7d66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_diff/databases/clickhouse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def quote(self, s: str) -> str:
8888

8989
def md5_to_int(self, s: str) -> str:
9090
substr_idx = 1 + MD5_HEXDIGITS - CHECKSUM_HEXDIGITS
91-
return f'reinterpretAsUInt64(reverse(unhex(lowerUTF8(substr(hex(MD5({s})), {substr_idx})))))'
91+
return f'reinterpretAsUInt128(reverse(unhex(lowerUTF8(substr(hex(MD5({s})), {substr_idx})))))'
9292

9393
def to_string(self, s: str) -> str:
9494
return f"toString({s})"

0 commit comments

Comments
 (0)