René's URL Explorer Experiment


Title: Duplicate data source in feature registry · Issue #2581 · feast-dev/feast · GitHub

Open Graph Title: Duplicate data source in feature registry · Issue #2581 · feast-dev/feast

X Title: Duplicate data source in feature registry · Issue #2581 · feast-dev/feast

Description: Expected Behavior Registry protobuf should not have duplicate data source definitions. Current Behavior Every time we run feast apply, we noticed that a data source source is appended to the registry protobuf with the exact same details....

Open Graph Description: Expected Behavior Registry protobuf should not have duplicate data source definitions. Current Behavior Every time we run feast apply, we noticed that a data source source is appended to the regist...

X Description: Expected Behavior Registry protobuf should not have duplicate data source definitions. Current Behavior Every time we run feast apply, we noticed that a data source source is appended to the regist...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Duplicate data source in feature registry","articleBody":"## Expected Behavior \r\nRegistry protobuf should not have duplicate data source definitions.\r\n\r\n## Current Behavior\r\nEvery time we run `feast apply`, we noticed that a data source source is appended to the registry protobuf with the exact same details.\r\n\r\n```python\r\nfrom feast.protos.feast.core.Registry_pb2 import Registry as RegistryProto\r\n\r\nregistry_proto = RegistryProto()\r\n\r\nwith open('registry.db', 'rb') as f: data = f.read()\r\n\r\nprint(registry_proto.FromString(data))\r\n````\r\n\r\nThis is what the protobuf looks like after running `feast apply` 3 times in a row without making any changes to the definition.\r\n\r\n```\r\nentities {\r\n  spec {\r\n    name: \"__dummy\"\r\n    value_type: STRING\r\n    join_key: \"__dummy_id\"\r\n    project: \"myproject\"\r\n  }\r\n  meta {\r\n    created_timestamp {\r\n      seconds: 1650485581\r\n      nanos: 37674000\r\n    }\r\n    last_updated_timestamp {\r\n      seconds: 1650485581\r\n      nanos: 37723000\r\n    }\r\n  }\r\n}\r\nregistry_schema_version: \"1\"\r\nversion_id: \"743b0630-373b-405f-861d-3de738962d7c\"\r\nlast_updated {\r\n  seconds: 1650485581\r\n  nanos: 37831000\r\n}\r\nfeature_views {\r\n  spec {\r\n    name: \"IRIS\"\r\n    project: \"myproject\"\r\n    entities: \"__dummy\"\r\n    features {\r\n      name: \"PETAL_LENGTH\"\r\n      value_type: FLOAT\r\n    }\r\n    features {\r\n      name: \"PETAL_WIDTH\"\r\n      value_type: FLOAT\r\n    }\r\n    features {\r\n      name: \"SEPAL_LENGTH\"\r\n      value_type: FLOAT\r\n    }\r\n    features {\r\n      name: \"SEPAL_WIDTH\"\r\n      value_type: FLOAT\r\n    }\r\n    features {\r\n      name: \"SPECIES\"\r\n      value_type: INT64\r\n    }\r\n    ttl {\r\n      seconds: 31449600\r\n    }\r\n    batch_source {\r\n      type: BATCH_SNOWFLAKE\r\n      timestamp_field: \"EVENT_TIMESTAMP\"\r\n      created_timestamp_column: \"CREATE_TIMESTAMP\"\r\n      data_source_class_type: \"feast.infra.offline_stores.snowflake_source.SnowflakeSource\"\r\n      snowflake_options {\r\n        table: \"IRIS\"\r\n        schema: \"MY_SCHEMA\"\r\n        database: \"MY_DATABASE\"\r\n      }\r\n    }\r\n    online: true\r\n    description: \"A sample feature view containing the Iris dataset.\"\r\n  }\r\n  meta {\r\n    created_timestamp {\r\n      seconds: 1650485581\r\n      nanos: 37333000\r\n    }\r\n    last_updated_timestamp {\r\n      seconds: 1650485581\r\n      nanos: 37333000\r\n    }\r\n  }\r\n}\r\ndata_sources {\r\n  type: BATCH_SNOWFLAKE\r\n  timestamp_field: \"EVENT_TIMESTAMP\"\r\n  created_timestamp_column: \"CREATE_TIMESTAMP\"\r\n  data_source_class_type: \"feast.infra.offline_stores.snowflake_source.SnowflakeSource\"\r\n  snowflake_options {\r\n    table: \"IRIS\"\r\n    schema: \"MY_SCHEMA\"\r\n    database: \"MY_DATABASE\"\r\n  }\r\n  project: \"myproject\"\r\n}\r\ndata_sources {\r\n  type: BATCH_SNOWFLAKE\r\n  timestamp_field: \"EVENT_TIMESTAMP\"\r\n  created_timestamp_column: \"CREATE_TIMESTAMP\"\r\n  data_source_class_type: \"feast.infra.offline_stores.snowflake_source.SnowflakeSource\"\r\n  snowflake_options {\r\n    table: \"IRIS\"\r\n    schema: \"MY_SCHEMA\"\r\n    database: \"MY_DATABASE\"\r\n  }\r\n  project: \"myproject\"\r\n}\r\ndata_sources {\r\n  type: BATCH_SNOWFLAKE\r\n  timestamp_field: \"EVENT_TIMESTAMP\"\r\n  created_timestamp_column: \"CREATE_TIMESTAMP\"\r\n  data_source_class_type: \"feast.infra.offline_stores.snowflake_source.SnowflakeSource\"\r\n  snowflake_options {\r\n    table: \"IRIS\"\r\n    schema: \"MY_SCHEMA\"\r\n    database: \"MY_DATABASE\"\r\n  }\r\n  project: \"myproject\"\r\n}\r\n```\r\n## Steps to reproduce\r\n\r\nHere's the `feature_store.yaml`:\r\n```yaml\r\nproject: myproject\r\nregistry: s3://mybucket/registry.db\r\nprovider: local\r\noffline_store:\r\n  type: snowflake.offline\r\n  account: myaccount\r\n  user: myuser\r\n  password: mypasssword\r\n  role: myrole\r\n  warehouse: mywarehouse\r\n  database: mydatabase\r\nonline_store:\r\n  type: redis\r\n  connection_string: myredisconnectionstring\r\n```\r\n\r\nAnd here's the feature definition `feature_definitions/iris.py`:\r\n```python\r\nfrom datetime import timedelta\r\nfrom pathlib import Path\r\n\r\nfrom feast import Feature, FeatureView, SnowflakeSource, ValueType\r\n\r\nname = Path(__file__).stem\r\n\r\niris_source = SnowflakeSource(\r\n    schema=\"MY_SCHEMA\",\r\n    database=\"MY_DATABASE\",\r\n    table=\"IRIS\",\r\n    timestamp_field=\"EVENT_TIMESTAMP\",\r\n    created_timestamp_column=\"CREATE_TIMESTAMP\"\r\n)\r\n\r\niris = FeatureView(\r\n    name=name.upper(),\r\n    entities=[],\r\n    ttl=timedelta(weeks=52),\r\n    schema=[\r\n        Feature(name=\"PETAL_LENGTHS\", dtype=ValueType.FLOAT),\r\n        Feature(name=\"PETAL_WIDTH\", dtype=ValueType.FLOAT),\r\n        Feature(name=\"SEPAL_LENGTH\", dtype=ValueType.FLOAT),\r\n        Feature(name=\"SEPAL_WIDTH\", dtype=ValueType.FLOAT),\r\n        Feature(name=\"SPECIES\", dtype=ValueType.INT64),\r\n    ],\r\n    online=True,\r\n    source=iris_source,\r\n    description=\"A sample feature view containing the Iris dataset.\"\r\n)\r\n```\r\n\r\n### Specifications\r\n\r\n- Version: `0.2.0`\r\n- Platform: AWS EC2 (Linux2 AMI)\r\n- Subsystem:\r\n\r\n## Possible Solution\r\n","author":{"url":"https://github.com/tkch3n","@type":"Person","name":"tkch3n"},"datePublished":"2022-04-20T20:50:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2581/feast/issues/2581"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0ef747b1-d33d-f5cb-0194-95f9974ad8d5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE274:247C68:6CB5D2A:94176E9:69786DE4
html-safe-nonceb50a2af4ead22d9b2cba5a3db1d340caad5aad7a38c416f7a12e7b589e2500ad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjc0OjI0N0M2ODo2Q0I1RDJBOjk0MTc2RTk6Njk3ODZERTQiLCJ2aXNpdG9yX2lkIjoiNTcyOTQ4OTI2MDg1MTUyMzA0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac423c4537a24e1e52e1e8b81f8ac97a4d8f963fd85dda0900871fd60af2c268f3
hovercard-subject-tagissue:1210197101
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/2581/issue_layout
twitter:imagehttps://opengraph.githubassets.com/54615c492dc98cf8a7ef8fc5e3e684ba6881d22e8aeb3c8118ec62c41e84f5f9/feast-dev/feast/issues/2581
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/54615c492dc98cf8a7ef8fc5e3e684ba6881d22e8aeb3c8118ec62c41e84f5f9/feast-dev/feast/issues/2581
og:image:altExpected Behavior Registry protobuf should not have duplicate data source definitions. Current Behavior Every time we run feast apply, we noticed that a data source source is appended to the regist...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametkch3n
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
release520b65a872113b919c1bbdb03834a50af15859fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/2581#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F2581
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%2F2581
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/2581
Reloadhttps://github.com/feast-dev/feast/issues/2581
Reloadhttps://github.com/feast-dev/feast/issues/2581
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 182 https://github.com/feast-dev/feast/issues
Pull requests 66 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/2581
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/2581
#2603https://github.com/feast-dev/feast/pull/2603
Duplicate data source in feature registryhttps://github.com/feast-dev/feast/issues/2581#top
#2603https://github.com/feast-dev/feast/pull/2603
https://github.com/felixwang9817
kind/bughttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/p2https://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22priority%2Fp2%22
https://github.com/tkch3n
https://github.com/tkch3n
tkch3nhttps://github.com/tkch3n
on Apr 20, 2022https://github.com/feast-dev/feast/issues/2581#issue-1210197101
felixwang9817https://github.com/felixwang9817
kind/bughttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/p2https://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22priority%2Fp2%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.