Skip to content

Commit 2081719

Browse files
committed
fix: Dask pulling of latest data
Signed-off-by: Suraj Patil <patilsuraj767@gmail.com>
1 parent 2a2e304 commit 2081719

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/python/feast/infra/offline_stores/dask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def evaluate_offline_job():
361361

362362
source_df = source_df[
363363
(source_df[timestamp_field] >= start_date)
364-
& (source_df[timestamp_field] < end_date)
364+
& (source_df[timestamp_field] <= end_date)
365365
]
366366

367367
source_df = source_df.persist()

sdk/python/tests/utils/feature_records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def get_last_feature_row(df: pd.DataFrame, driver_id, max_date: datetime):
519519
"""Manually extract last feature value from a dataframe for a given driver_id with up to `max_date` date"""
520520
filtered = df[
521521
(df["driver_id"] == driver_id)
522-
& (df["event_timestamp"] < max_date.replace(tzinfo=timezone.utc))
522+
& (df["event_timestamp"] <= max_date.replace(tzinfo=timezone.utc))
523523
]
524524
max_ts = filtered.loc[filtered["event_timestamp"].idxmax()]["event_timestamp"]
525525
filtered_by_ts = filtered[filtered["event_timestamp"] == max_ts]

0 commit comments

Comments
 (0)