Title: RequestSource can not be used with write_to_online_store · Issue #4493 · feast-dev/feast · GitHub
Open Graph Title: RequestSource can not be used with write_to_online_store · Issue #4493 · feast-dev/feast
X Title: RequestSource can not be used with write_to_online_store · Issue #4493 · feast-dev/feast
Description: Expected Behavior Use RequestSource with write_to_online_store Current Behavior Steps to reproduce feature view has request source defined such as { "spec": { "name": "embedding_catalog", "features": [ { "name": "embeddings", "valueType"...
Open Graph Description: Expected Behavior Use RequestSource with write_to_online_store Current Behavior Steps to reproduce feature view has request source defined such as { "spec": { "name": "embedding_catalog", "features...
X Description: Expected Behavior Use RequestSource with write_to_online_store Current Behavior Steps to reproduce feature view has request source defined such as { "spec": { "name": "embe...
Opengraph URL: https://github.com/feast-dev/feast/issues/4493
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RequestSource can not be used with write_to_online_store","articleBody":"## Expected Behavior \r\nUse RequestSource with write_to_online_store\r\n\r\n## Current Behavior\r\n\r\n## Steps to reproduce\r\n\r\nfeature view has request source defined such as\r\n```\r\n {\r\n \"spec\": {\r\n \"name\": \"embedding_catalog\",\r\n \"features\": [\r\n {\r\n \"name\": \"embeddings\",\r\n \"valueType\": \"FLOAT_LIST\"\r\n },\r\n {\r\n \"name\": \"event_timestamp\",\r\n \"valueType\": \"UNIX_TIMESTAMP\"\r\n }\r\n ],\r\n \"ttl\": \"0s\",\r\n \"batchSource\": {\r\n \"type\": \"REQUEST_SOURCE\",\r\n \"dataSourceClassType\": \"feast.data_source.RequestSource\",\r\n \"requestDataOptions\": {\r\n \"schema\": [\r\n {\r\n \"name\": \"embeddings\",\r\n \"valueType\": \"FLOAT_LIST\"\r\n },\r\n {\r\n \"name\": \"event_timestamp\",\r\n \"valueType\": \"UNIX_TIMESTAMP\"\r\n }\r\n ]\r\n },\r\n \"name\": \"embedding_catalog\"\r\n },\r\n \"online\": true\r\n },\r\n \"meta\": {\r\n \"createdTimestamp\": \"2024-09-06T07:58:13.929715Z\",\r\n \"lastUpdatedTimestamp\": \"2024-09-06T07:58:13.929715Z\"\r\n }\r\n}\r\n\r\n```\r\nin the `_convert_arrow_to_proto` function it will fail at extracting the timestamp field:\r\n```\r\n event_timestamps = [\r\n _coerce_datetime(val)\r\n for val in pd.to_datetime(\r\n table.column(feature_view.batch_source.timestamp_field).to_numpy(\r\n zero_copy_only=False\r\n )\r\n )\r\n ]\r\n```\r\nsince `feature_view.batch_source` (request source) doesn't have `timestamp_field`.\r\n\r\n### Specifications\r\n\r\n- Version:\r\n- Platform:\r\n- Subsystem:\r\n\r\n## Possible Solution\r\n\r\nadd an attributee for RequestSource for the user to specify the timestamp_field.\r\n","author":{"url":"https://github.com/HaoXuAI","@type":"Person","name":"HaoXuAI"},"datePublished":"2024-09-06T08:22:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/4493/feast/issues/4493"}
| 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:ed0472c5-d103-f7ef-0d7e-1dd4e638945b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA0A:373734:27E1AA6:380D88B:6970FBA5 |
| html-safe-nonce | d7ae71e727ae71c056dcd930ade6fe4be5bd50ce529b8916035526b95734e387 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTBBOjM3MzczNDoyN0UxQUE2OjM4MEQ4OEI6Njk3MEZCQTUiLCJ2aXNpdG9yX2lkIjoiNDc2OTk1NDI0MjIwNDA3Mjg2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ddde07089242c8307a20fc317b1300ae80f08568b3a067045f4b628e7cff8293 |
| hovercard-subject-tag | issue:2509825060 |
| 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/4493/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a5f4ee69ffd3a718aa8688bf377c9617ec12e27bc8303e8cd7d16902ab08b66/feast-dev/feast/issues/4493 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a5f4ee69ffd3a718aa8688bf377c9617ec12e27bc8303e8cd7d16902ab08b66/feast-dev/feast/issues/4493 |
| og:image:alt | Expected Behavior Use RequestSource with write_to_online_store Current Behavior Steps to reproduce feature view has request source defined such as { "spec": { "name": "embedding_catalog", "features... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HaoXuAI |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b239ebed690c3053869ff31a3b7597834c25673659d63e7b6fd6a9b5d7853de |
| 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 | aeacfd55297f3de5395c83f200ac35d1f474115e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width