Skip to content

Commit

Permalink
ML-667: in hash calculation should be modulo instead of division (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
katyakats authored Jun 10, 2021
1 parent fd3f4d1 commit 698580d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storey/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _path_from_event(self, event):
col = f'igzpart_hash{hash_into}_{col}'
if isinstance(val, list):
val = '.'.join(map(str, val))
val = hash(val) / hash_into
val = hash(val) % hash_into
elif is_meta:
col = f'igzpart_{col}'

Expand Down

0 comments on commit 698580d

Please sign in to comment.