GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Add DynamoDB in-place list update support for array-based features by anshishrivastava · Pull Request #5916 · feast-dev/feast

feat: Add DynamoDB in-place list update support for array-based features #5916

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.

Sign up for GitHub

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

Merged
franciscojavierarceo merged 4 commits into feast-dev:master from anshishrivastava:feat/dynamodb-list-updates
Feb 4, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

feat: Add DynamoDB in-place list update support for array-based features #5916

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4 commits
Select commit Hold shift + click to select a range
aca9589
feat: add DynamoDB in-place list update support for array-based features
anshishr Jan 29, 2026
9dd1ab9
refactor: remove sync update_online_store, keep only async version
anshishr Jan 30, 2026
5220c2e
Merge branch 'master' into feat/dynamodb-list-updates
anshishrivastava Feb 2, 2026
118cab2
Merge branch 'master' into feat/dynamodb-list-updates
anshishrivastava Feb 3, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

85 changes: 85 additions & 0 deletions 85 sdk/python/feast/feature_store.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2253,6 +2253,91 @@ async def write_to_online_store_async(
provider = self._get_provider()
await provider.ingest_df_async(feature_view, df)

async def update_online_store(
self,
feature_view_name: str,
df: pd.DataFrame,
update_expressions: Dict[str, str],
allow_registry_cache: bool = True,
) -> None:
"""
Update features using DynamoDB-specific list operations.

This method provides efficient in-place list updates using DynamoDB's native
UpdateItem operations with list_append and other expressions. This is more
efficient than the read-modify-write pattern for array-based features.

Args:
feature_view_name: The feature view to update.
df: DataFrame with new values to append/prepend to existing lists.
update_expressions: Dict mapping feature names to DynamoDB update expressions.
Examples:
- {"transactions": "list_append(transactions, :new_val)"} # append
- {"recent_items": "list_append(:new_val, recent_items)"} # prepend
allow_registry_cache: Whether to allow cached registry.

Raises:
NotImplementedError: If online store doesn't support update expressions.
ValueError: If the feature view or update expressions are invalid.

Example:
# Append new transactions to existing transaction history
await store.update_online_store(
feature_view_name="user_transactions",
df=new_transactions_df,
update_expressions={
"transaction_history": "list_append(transaction_history, :new_val)",
"recent_amounts": "list_append(:new_val, recent_amounts)" # prepend
}
)
"""
# Check if online store supports update expressions
provider = self._get_provider()
if not hasattr(provider.online_store, "update_online_store_async"):
raise NotImplementedError(
f"Online store {type(provider.online_store).__name__} "
"does not support async update expressions. This feature is only available "
"with DynamoDB online store."
)

feature_view, df = self._get_feature_view_and_df_for_online_write(
feature_view_name=feature_view_name,
df=df,
allow_registry_cache=allow_registry_cache,
transform_on_write=False, # Don't transform for updates
)

# Validate that the dataframe has meaningful feature data
if df is not None:
if df.empty:
warnings.warn("Cannot update with empty dataframe")
return

# Check if feature columns are empty
feature_column_names = [f.name for f in feature_view.features]
if feature_column_names:
feature_df = df[feature_column_names]
if feature_df.empty or feature_df.isnull().all().all():
warnings.warn("Cannot update with empty feature columns")
return

# Prepare data for online store
from feast.infra.passthrough_provider import PassthroughProvider

rows_to_write = PassthroughProvider._prep_rows_to_write_for_ingestion(
feature_view=feature_view,
df=df,
)

# Call DynamoDB-specific async method
await provider.online_store.update_online_store_async(
config=self.config,
table=feature_view,
data=rows_to_write,
update_expressions=update_expressions,
progress=None,
)

def write_to_offline_store(
self,
feature_view_name: str,
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.