Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix redis materialize
Signed-off-by: qooba <dev@qooba.net>
  • Loading branch information
qooba authored and woop committed Jun 9, 2021
commit b0c8101c729ba17ecf86f27a2bd5e5063a93986f
2 changes: 1 addition & 1 deletion sdk/python/feast/infra/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,4 @@ def _mmh3(key: str):
https://stackoverflow.com/questions/13141787/convert-decimal-int-to-little-endian-string-x-x
"""
key_hash = mmh3.hash(key, signed=False)
return bytes.fromhex(struct.pack("<Q", key_hash).hex().rstrip("0"))
return bytes.fromhex(struct.pack("<Q", key_hash).hex()[:8])