Repository navigation
feat: Add online append for sequence feature views #7215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
patelchaitany
wants to merge
4
commits into
feast-dev:master
Choose a base branch
from
patelchaitany:feat/squence-write
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
6d2feef
added online append
patelchaitany a3cdeac
fix: Keep each sequence event when a late event repeats its values
patelchaitany 60b29ea
fix: Delete sequence keys in Redis delete_table and teardown
patelchaitany ab43236
fix: Scope Redis sequence keys to their project
patelchaitany File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Late duplicates erase newer sequence events
When identical feature values for an entity arrive newest first,
online_appendreplaces the newer timestamp with the older one. Age or length trimming can then delete the entry even though the newer event qualified for retention.Learn more
write_to_online_store routes append-mode DataFrames through ingest_df without sorting the rows. Redis stores one timestamp per sorted-set member, and _group_append_events uses only the feature values as the member. Within one batch, the last row with matching values wins; across batches, ZADD unconditionally replaces the existing score. The newer timestamp is lost in both cases, and the retention commands can then remove the remaining entry. online_append_async has the same behavior.
Example: At noon, write a value of 7 for entity 42 with an 11:55 event time and a one-hour age limit. Then append a delayed 10:00 event with the same value. Redis moves the entry to 10:00 and trims it, leaving no record of the 11:55 event. Submitting the two rows in that order in one batch has the same result.
Recommended fix: Include the event timestamp in the member identity so the older event can be trimmed independently. If retaining the payload-only format for now, keep the maximum timestamp in each batch and prevent Redis score updates from decreasing an existing score, using ZADD GT where supported. Cover newest-first inputs both within one batch and across writes.
Was this helpful? React with 👍 or 👎 to provide feedback.