You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java/storage/connectors/redis/src/main/java/feast/storage/connectors/redis/retriever/EntityKeySerializerV2.java
+43-46Lines changed: 43 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -16,16 +16,14 @@
16
16
*/
17
17
packagefeast.storage.connectors.redis.retriever;
18
18
19
-
importcom.google.common.primitives.UnsignedBytes;
20
19
importcom.google.protobuf.ProtocolStringList;
21
20
importfeast.proto.storage.RedisProto;
22
21
importfeast.proto.types.ValueProto;
23
22
importjava.nio.ByteBuffer;
24
23
importjava.nio.ByteOrder;
25
24
importjava.nio.charset.StandardCharsets;
26
-
importjava.util.ArrayList;
27
-
importjava.util.Comparator;
28
-
importjava.util.List;
25
+
importjava.util.*;
26
+
importorg.apache.commons.lang3.ArrayUtils;
29
27
importorg.apache.commons.lang3.tuple.Pair;
30
28
31
29
// This is derived from
@@ -48,70 +46,52 @@ public byte[] serialize(RedisProto.RedisKeyV2 entityKey) {
/* This is super dumb - but in https://github.com/feast-dev/feast/blob/dcae1606f53028ce5413567fb8b66f92cfef0f8e/sdk/python/feast/infra/key_encoding_utils.py#L9
100
83
we use `struct.pack("<l", v.int64_val)` to get the bytes of an int64 val. This actually extracts only 4 bytes,
101
84
instead of 8 bytes as you'd expect from to serialize an int64 value.
0 commit comments