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
Update redis.py
fix: Remove whitespace on blank lines (W293)

Signed-off-by: Jatin Kumar <jatink.5251@gmail.com>
  • Loading branch information
jatin5251 authored Jan 6, 2026
commit ea3be2798dbf3e0dc7b6e9b6343e56e09d32b936
3 changes: 0 additions & 3 deletions sdk/python/feast/infra/online_stores/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,11 @@ def online_write_batch(
):
# Convert incoming timestamp to millisecond-aware datetime
aware_ts = utils.make_tzaware(timestamp)

# Build protobuf timestamp with nanos
ts = Timestamp()
ts.FromDatetime(aware_ts)
# New timestamp in nanoseconds
new_total_nanos = ts.seconds * 1_000_000_000 + ts.nanos

# Compare against existing timestamp (nanosecond precision)
if prev_event_time:
prev_ts = Timestamp()
Expand All @@ -323,7 +321,6 @@ def online_write_batch(
if progress:
progress(1)
continue

# Store full timestamp (seconds + nanos)
entity_hset = {ts_key: ts.SerializeToString()}

Expand Down
Loading