Title: DynamoDB online_read ignores requested_features parameter · Issue #6058 · feast-dev/feast · GitHub
Open Graph Title: DynamoDB online_read ignores requested_features parameter · Issue #6058 · feast-dev/feast
X Title: DynamoDB online_read ignores requested_features parameter · Issue #6058 · feast-dev/feast
Description: Expected Behavior When calling get_online_features() with a subset of features (e.g., ["fv:feature_a", "fv:feature_b"]), the DynamoDB online store should only fetch those specific features using DynamoDB's ProjectionExpression. This redu...
Open Graph Description: Expected Behavior When calling get_online_features() with a subset of features (e.g., ["fv:feature_a", "fv:feature_b"]), the DynamoDB online store should only fetch those specific features using Dy...
X Description: Expected Behavior When calling get_online_features() with a subset of features (e.g., ["fv:feature_a", "fv:feature_b"]), the DynamoDB online store should only fetch those specif...
Opengraph URL: https://github.com/feast-dev/feast/issues/6058
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DynamoDB online_read ignores requested_features parameter","articleBody":"## Expected Behavior \nWhen calling get_online_features() with a subset of features (e.g., [\"fv:feature_a\", \"fv:feature_b\"]), the DynamoDB online store should only fetch those specific features using DynamoDB's ProjectionExpression. This reduces data transfer, lowers latency, and decreases read costs.\n\n## Current Behavior\nThe requested_features parameter is passed through the call chain to online_read() and online_read_async() but is completely ignored. DynamoDB's BatchGetItem fetches all features stored in the values map regardless of what features were requested.\n```\n# In dynamodb.py line 559-560\nasync def online_read_async(\n ...\n requested_features: Optional[List[str]] = None, # Parameter accepted but unused\n)\n```\nThe BatchGetItem call does not include ProjectionExpression:\n```\n# Current implementation (line 619-621)\nclient.batch_get_item(\n RequestItems=entity_id_batch, # No ProjectionExpression\n)\n\n```\n## Steps to reproduce\n```\nfrom feast import FeatureStore\n\nfs = FeatureStore(repo_path=\".\")\n\n# Request only 2 features out of 200 stored\nresponse = fs.get_online_features(\n features=[\"my_fv:feature_a\", \"my_fv:feature_b\"], # Only 2 features\n entity_rows=[{\"entity_id\": \"user_1\"}]\n)\n\n# Expected: DynamoDB fetches only feature_a, feature_b\n# Actual: DynamoDB fetches all 200 features, wastes bandwidth\n```\n\n### Specifications\n\n - Version: 0.60.0 and latest master\n- Platform: Any (tested on OpenShift/Kubernetes)\n- Subsystem: feast.infra.online_stores.dynamodb\n\n## Possible Solution\nAdd ProjectionExpression to BatchGetItem requests when requested_features is specified\n","author":{"url":"https://github.com/abhijeet-dhumal","@type":"Person","name":"abhijeet-dhumal"},"datePublished":"2026-03-04T09:36:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6058/feast/issues/6058"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c3346536-d7aa-01e6-66d2-eeb1f26a0735 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9618:FCF93:287B27:3B5941:6A4E023C |
| html-safe-nonce | bdf5c646933b12e39ed8509745cea61af6ebe51933a88619df69973088e39aed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjE4OkZDRjkzOjI4N0IyNzozQjU5NDE6NkE0RTAyM0MiLCJ2aXNpdG9yX2lkIjoiMjI1MTUxNjY0ODI3NDkxOTk5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ffd83f49ec20107079b36b360f1b0b293880b9e775cf95986147f0c3cc45cd2c |
| hovercard-subject-tag | issue:4021032266 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/6058/issue_layout |
| twitter:image | https://opengraph.githubassets.com/af0e35243aedfa8ca738fb61b7140c0f57f857bbf3aa6d46177c8b94da69dbe9/feast-dev/feast/issues/6058 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/af0e35243aedfa8ca738fb61b7140c0f57f857bbf3aa6d46177c8b94da69dbe9/feast-dev/feast/issues/6058 |
| og:image:alt | Expected Behavior When calling get_online_features() with a subset of features (e.g., ["fv:feature_a", "fv:feature_b"]), the DynamoDB online store should only fetch those specific features using Dy... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abhijeet-dhumal |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 52bde38e24398476f8eb1e0760c81346c6a00812 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width