Skip to content

Commit c6536e7

Browse files
committed
Fix no ttl logic
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
1 parent 3f243ef commit c6536e7

File tree

1 file changed

+8
-0
lines changed
  • sdk/python/feast/infra/offline_stores

1 file changed

+8
-0
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,14 @@ def _filter_ttl(
635635
)
636636
]
637637

638+
df_to_join = df_to_join.persist()
639+
else:
640+
df_to_join = df_to_join[
641+
# do not drop entity rows if one of the sources returns NaNs
642+
df_to_join[timestamp_field].isna()
643+
| (df_to_join[timestamp_field] <= df_to_join[entity_df_event_timestamp_col])
644+
]
645+
638646
df_to_join = df_to_join.persist()
639647

640648
return df_to_join

0 commit comments

Comments
 (0)