Skip to content
Prev Previous commit
Next Next commit
fix tests
Signed-off-by: Achal Shah <achals@gmail.com>
  • Loading branch information
achals committed Jul 19, 2022
commit c6dabd163a00ae0693c3b5c6e6bedc1550edbff7
8 changes: 4 additions & 4 deletions sdk/python/feast/infra/key_encoding_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ def _serialize_val(
return struct.pack("<i", v.int32_val), ValueType.INT32
elif value_type == "int64_val":
if (
entity_key_serialization_version >= 0
and entity_key_serialization_version <= 1
entity_key_serialization_version >= 0
and entity_key_serialization_version <= 1
):
return struct.pack("<q", v.int64_val), ValueType.INT64
return struct.pack("<l", v.int64_val), ValueType.INT64
return struct.pack("<l", v.int64_val), ValueType.INT64
Comment thread
achals marked this conversation as resolved.
Outdated
return struct.pack("<q", v.int64_val), ValueType.INT64
else:
raise ValueError(f"Value type not supported for Firestore: {v}")

Expand Down