René's URL Explorer Experiment


Title: FeatureStore.get_online_features is broken with int64 vals · Issue #1908 · feast-dev/feast · GitHub

Open Graph Title: FeatureStore.get_online_features is broken with int64 vals · Issue #1908 · feast-dev/feast

X Title: FeatureStore.get_online_features is broken with int64 vals · Issue #1908 · feast-dev/feast

Description: Expected Behavior I should be able to use an int64 value as the join key value for an entity, when the value type is value_type=ValueType.INT64. Current Behavior Only values -2147483648 <= number <= 2147483647 can be used as the value. T...

Open Graph Description: Expected Behavior I should be able to use an int64 value as the join key value for an entity, when the value type is value_type=ValueType.INT64. Current Behavior Only values -2147483648 <= number <...

X Description: Expected Behavior I should be able to use an int64 value as the join key value for an entity, when the value type is value_type=ValueType.INT64. Current Behavior Only values -2147483648 <= numbe...

Opengraph URL: https://github.com/feast-dev/feast/issues/1908

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FeatureStore.get_online_features is broken with int64 vals","articleBody":"## Expected Behavior \r\nI should be able to use an int64 value as the join key value for an entity, when the value type is `value_type=ValueType.INT64`.\r\n\r\n## Current Behavior\r\nOnly values -2147483648 \u003c= number \u003c= 2147483647 can be used as the value. This is equivalent to -2^31 \u003c= number \u003c= 2^31 - 1\r\n\r\n\r\n## Steps to reproduce\r\nSpecify a value greater than 2^31 - 1 as a the join key value when looking up values from the feature store.\r\n\r\n```\r\n\u003e\u003e\u003e fs.get_online_features(features=['driver_hourly_stats:conv_rate'],  entity_rows=[{'driver_id': 2147483648}]).to_df()\r\nTraceback (most recent call last):\r\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n  File \"/Users/achal/tecton/feast/sdk/python/feast/usage.py\", line 202, in exception_logging_wrapper\r\n    result = func(*args, **kwargs)\r\n  File \"/Users/achal/tecton/feast/sdk/python/feast/feature_store.py\", line 897, in get_online_features\r\n    union_of_entity_keys,\r\n  File \"/Users/achal/tecton/feast/sdk/python/feast/feature_store.py\", line 924, in _populate_result_rows_from_feature_view\r\n    requested_features=requested_features,\r\n  File \"/Users/achal/tecton/feast/sdk/python/feast/infra/passthrough_provider.py\", line 81, in online_read\r\n    result = self.online_store.online_read(config, table, entity_keys)\r\n  File \"/Users/achal/tecton/feast/sdk/python/feast/infra/online_stores/redis.py\", line 190, in online_read\r\n    redis_key_bin = _redis_key(project, entity_key)\r\n  File \"/Users/achal/tecton/feast/sdk/python/feast/infra/online_stores/helpers.py\", line 40, in _redis_key\r\n    key: List[bytes] = [serialize_entity_key(entity_key), project.encode(\"utf-8\")]\r\n  File \"/Users/achal/tecton/feast/sdk/python/feast/infra/key_encoding_utils.py\", line 41, in serialize_entity_key\r\n    val_bytes, value_type = _serialize_val(v.WhichOneof(\"val\"), v)\r\n  File \"/Users/achal/tecton/feast/sdk/python/feast/infra/key_encoding_utils.py\", line 17, in _serialize_val\r\n    return struct.pack(\"\u003cl\", v.int64_val), ValueType.INT64\r\nstruct.error: 'l' format requires -2147483648 \u003c= number \u003c= 2147483647\r\n```\r\n\r\n\r\n## Possible Solution\r\n\r\nThe trivial fix is to make [this line](https://github.com/feast-dev/feast/blob/dcae1606f53028ce5413567fb8b66f92cfef0f8e/sdk/python/feast/infra/key_encoding_utils.py#L17) use `\"q\"` as the format string, which refers to a `signed long long` value which is 8 bytes in size.\r\n\r\nChanging this behavior is a backwards incompatible change, since it would change the bytes encoded for an entity key which takes on int64 values. This means that materialized records oh that value type would would be unreadable.\r\n\r\nThe \"correct\" way of fixing this would require us to version the encoding scheme in the feature store.","author":{"url":"https://github.com/achals","@type":"Person","name":"achals"},"datePublished":"2021-09-25T02:50:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/1908/feast/issues/1908"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d827e6b9-797b-be9d-7fb0-b8ad35fbbe4c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8750:15B1F7:1008D12:166DF2E:6978C310
html-safe-nonceb36fc29c34bd553140e99ad0017618789134d3dd4f7cab469609dc43d850c9ac
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzUwOjE1QjFGNzoxMDA4RDEyOjE2NkRGMkU6Njk3OEMzMTAiLCJ2aXNpdG9yX2lkIjoiMzY1NTY0MjA0NTQ1NzQxNjk3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac38fd6856e434a755746989f0157e4a48208e8f029ca175403887aeda96e3057f
hovercard-subject-tagissue:1006938287
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/1908/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3af37fbc3d3cf202aceaabb6f8215949723ca8677ba01d13a4e7d786dca9388f/feast-dev/feast/issues/1908
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3af37fbc3d3cf202aceaabb6f8215949723ca8677ba01d13a4e7d786dca9388f/feast-dev/feast/issues/1908
og:image:altExpected Behavior I should be able to use an int64 value as the join key value for an entity, when the value type is value_type=ValueType.INT64. Current Behavior Only values -2147483648 <= number <...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameachals
hostnamegithub.com
expected-hostnamegithub.com
None2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50
turbo-cache-controlno-preview
go-importgithub.com/feast-dev/feast git https://github.com/feast-dev/feast.git
octolytics-dimension-user_id57027613
octolytics-dimension-user_loginfeast-dev
octolytics-dimension-repository_id161133770
octolytics-dimension-repository_nwofeast-dev/feast
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id161133770
octolytics-dimension-repository_network_root_nwofeast-dev/feast
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9520342ca7ead2f1a011aa96eaff82fc054a4970
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/1908#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F1908
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F1908
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=feast-dev%2Ffeast
Reloadhttps://github.com/feast-dev/feast/issues/1908
Reloadhttps://github.com/feast-dev/feast/issues/1908
Reloadhttps://github.com/feast-dev/feast/issues/1908
feast-dev https://github.com/feast-dev
feasthttps://github.com/feast-dev/feast
Notifications https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Fork 1.2k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Star 6.7k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Code https://github.com/feast-dev/feast
Issues 181 https://github.com/feast-dev/feast/issues
Pull requests 67 https://github.com/feast-dev/feast/pulls
Discussions https://github.com/feast-dev/feast/discussions
Actions https://github.com/feast-dev/feast/actions
Security 0 https://github.com/feast-dev/feast/security
Insights https://github.com/feast-dev/feast/pulse
Code https://github.com/feast-dev/feast
Issues https://github.com/feast-dev/feast/issues
Pull requests https://github.com/feast-dev/feast/pulls
Discussions https://github.com/feast-dev/feast/discussions
Actions https://github.com/feast-dev/feast/actions
Security https://github.com/feast-dev/feast/security
Insights https://github.com/feast-dev/feast/pulse
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/1908
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/1908
#2944https://github.com/feast-dev/feast/pull/2944
FeatureStore.get_online_features is broken with int64 valshttps://github.com/feast-dev/feast/issues/1908#top
#2944https://github.com/feast-dev/feast/pull/2944
good first issueGood for newcomershttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
kind/bughttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/p1https://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22priority%2Fp1%22
https://github.com/achals
https://github.com/achals
achalshttps://github.com/achals
on Sep 25, 2021https://github.com/feast-dev/feast/issues/1908#issue-1006938287
this linehttps://github.com/feast-dev/feast/blob/dcae1606f53028ce5413567fb8b66f92cfef0f8e/sdk/python/feast/infra/key_encoding_utils.py#L17
good first issueGood for newcomershttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
kind/bughttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/p1https://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22priority%2Fp1%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.