Title: Precomputed online retrieval does not preserve entity input order or duplicates · Issue #6805 · feast-dev/feast · GitHub
Open Graph Title: Precomputed online retrieval does not preserve entity input order or duplicates · Issue #6805 · feast-dev/feast
X Title: Precomputed online retrieval does not preserve entity input order or duplicates · Issue #6805 · feast-dev/feast
Description: Expected Behavior When a precomputed FeatureService receives multiple entity rows, every feature value, field status, and event timestamp should be returned at the row of the corresponding input entity. Duplicate entities should appear a...
Open Graph Description: Expected Behavior When a precomputed FeatureService receives multiple entity rows, every feature value, field status, and event timestamp should be returned at the row of the corresponding input en...
X Description: Expected Behavior When a precomputed FeatureService receives multiple entity rows, every feature value, field status, and event timestamp should be returned at the row of the corresponding input en...
Opengraph URL: https://github.com/feast-dev/feast/issues/6805
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Precomputed online retrieval does not preserve entity input order or duplicates","articleBody":"## Expected Behavior\n\nWhen a precomputed FeatureService receives multiple entity rows, every feature value, field status, and event timestamp should be returned at the row of the corresponding input entity. Duplicate entities should appear at every requested row.\n\nFor example, a request for driver IDs `[3, 1, 3, 2]`, with a score of `driver_id * 10`, should return scores `[30.0, 10.0, 30.0, 20.0]`.\n\n## Current Behavior\n\nThe precomputed read path calls `_get_unique_entities()`, which deduplicates and sorts entity keys before reading their vectors. However, `_try_precomputed_fast_path()` currently writes the returned vectors into response rows by enumeration order.\n\nAs a result, unordered requests can receive feature values belonging to different entities, and repeated entities are not fanned out to all requested rows. This is a user-facing correctness issue, not only an output ordering difference.\n\n## Steps to reproduce\n\n1. Define a FeatureService with `precompute_online=True`, an entity named `driver_id`, and a numeric feature such as `score`.\n2. Populate precomputed vectors so each score is `driver_id * 10`.\n3. Request online features with unordered and duplicate entity rows:\n\n ```python\n response = store.get_online_features(\n features=feature_service,\n entity_rows={\"driver_id\": [3, 1, 3, 2]},\n registry=registry,\n project=\"test\",\n full_feature_names=True,\n )\n ```\n\n4. Observe that the feature values follow the sorted unique read order instead of the original request rows, and the duplicate row is not populated correctly.\n\nThe same behavior is present in `get_online_features_async()`.\n\n### Specifications\n\n- Version: current `master` at `5ad5592`; the affected path was introduced in #6463\n- Platform: reproduced with Python 3.10.11 on macOS; the code path is platform-independent\n- Subsystem: Python SDK / OnlineStore precomputed feature vector fast path\n\n## Possible Solution\n\nPass the original row-index groups returned by `_get_unique_entities()` into the precomputed fast path. Scatter each decoded vector's values, field statuses, and event timestamp to every corresponding request row.\n\nAdd regression coverage at both the fast-path level and the synchronous/asynchronous public `get_online_features` APIs.\n","author":{"url":"https://github.com/JodeZer","@type":"Person","name":"JodeZer"},"datePublished":"2026-09-01T10:06:41Z","url":"https://github.com/feast-dev/feast/issues/6805"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:ea9845df-b609-3d28-14a2-05fcb3b01180 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D71E:237BB8:2BC46F:3C56CE:6AFE981E |
| html-safe-nonce | 477a351dad1600ba3961d255f69623885e0d205927421d4f31f4faab5d4fdcf3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzFFOjIzN0JCODoyQkM0NkY6M0M1NkNFOjZBRkU5ODFFIiwidmlzaXRvcl9pZCI6IjU1OTAzNDY2MzAyOTM0ODM4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3ea5e814e7951872f99030d077a65db214bf9f2a6691afd786cbd81c80f02fd9 |
| hovercard-subject-tag | issue:5310519061 |
| 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/6805/issue_layout |
| twitter:image | https://opengraph.githubassets.com/21d71159b787d64b77d5ea8b8c32c81b095bef9bbbb5dfbc517d62e672b760a8/feast-dev/feast/issues/6805 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/21d71159b787d64b77d5ea8b8c32c81b095bef9bbbb5dfbc517d62e672b760a8/feast-dev/feast/issues/6805 |
| og:image:alt | Expected Behavior When a precomputed FeatureService receives multiple entity rows, every feature value, field status, and event timestamp should be returned at the row of the corresponding input en... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JodeZer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width