From ec65fd72f022788931fbe40c9c005638fb477a65 Mon Sep 17 00:00:00 2001 From: ntkathole Date: Sun, 12 Oct 2025 20:13:36 +0530 Subject: [PATCH] fix: Added unix_timestamp_val in _serialize_val Signed-off-by: ntkathole --- sdk/python/feast/infra/key_encoding_utils.py | 5 +++ .../unit/infra/test_key_encoding_utils.py | 36 +++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/sdk/python/feast/infra/key_encoding_utils.py b/sdk/python/feast/infra/key_encoding_utils.py index 1d055251118..4a3df1fc183 100644 --- a/sdk/python/feast/infra/key_encoding_utils.py +++ b/sdk/python/feast/infra/key_encoding_utils.py @@ -22,6 +22,8 @@ def _serialize_val( if 0 <= entity_key_serialization_version <= 1: return struct.pack(" ValueProto: return ValueProto(string_val=value) elif value_type == ValueType.BYTES: return ValueProto(bytes_val=value_bytes) + elif value_type == ValueType.UNIX_TIMESTAMP: + value = struct.unpack("