René's URL Explorer Experiment


Title: Error raised when planning/applying a change that inserts/removes a push source · Issue #3207 · feast-dev/feast · GitHub

Open Graph Title: Error raised when planning/applying a change that inserts/removes a push source · Issue #3207 · feast-dev/feast

X Title: Error raised when planning/applying a change that inserts/removes a push source · Issue #3207 · feast-dev/feast

Description: Expected Behavior The command feast apply (or plan) is never supposed to raise an error. In particular, one may want to insert a push source into an existing repo, between a batch source and a Feature View: i.e. from (arrows here represe...

Open Graph Description: Expected Behavior The command feast apply (or plan) is never supposed to raise an error. In particular, one may want to insert a push source into an existing repo, between a batch source and a Feat...

X Description: Expected Behavior The command feast apply (or plan) is never supposed to raise an error. In particular, one may want to insert a push source into an existing repo, between a batch source and a Feat...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error raised when planning/applying a change that inserts/removes a push source","articleBody":"## Expected Behavior \r\n\r\nThe command `feast apply` (or `plan`) is never supposed to raise an error. In particular, one may want to insert a push source into an existing repo, between a batch source and a Feature View: i.e. from (arrows here represent dependency in the feature repo definitions)\r\n```\r\nbatch_source \u003c-- feature_view\r\n```\r\nto\r\n```\r\nbatch_source \u003c-- push_source \u003c-- feature_view\r\n```\r\n\r\n## Current Behavior\r\n\r\nAn apply/plan invocation that leads Feast to compare a repo without the push source and one with the push source results in an error\r\nbeing thrown within the PushSource class, specifically in its `__eq__` method, because the \"other\" operand is None.\r\n\r\n## Steps to reproduce\r\n\r\nInstall Feast 0.24.1 and use the quickstart drivers example:\r\n```\r\nfeast init repo_name\r\ncd repo_name/feature_repo\r\nfeast apply\r\n```\r\n\r\nNow _alter the `example_repo.py`, changing the definition of `driver_stats_fresh_fv` so that its `source` parameter reads `driver_stats_source` instead of `driver_stats_push_source`: it is now\r\n```\r\ndriver_stats_fresh_fv = FeatureView(\r\n    name=\"driver_hourly_stats_fresh\",\r\n    entities=[driver],\r\n    ttl=timedelta(days=1),\r\n    schema=[\r\n        Field(name=\"conv_rate\", dtype=Float32),\r\n        Field(name=\"acc_rate\", dtype=Float32),\r\n        Field(name=\"avg_daily_trips\", dtype=Int64),\r\n    ],\r\n    online=True,\r\n    # THE FOLLOWING LINE EDITED instead of `driver_stats_push_source`:\r\n    source=driver_stats_source,  # Changed from above\r\n    tags={\"team\": \"driver_performance\"},\r\n)\r\n```\r\n\r\nFinally, try `feast apply` or `feast plan`, and the error is thrown. Stack:\r\n\r\n\r\n```\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/bin/feast\", line 8, in \u003cmodule\u003e\r\n    sys.exit(cli())\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/click/core.py\", line 1130, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/click/core.py\", line 1055, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/click/core.py\", line 1657, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/click/core.py\", line 1404, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/click/core.py\", line 760, in invoke\r\n    return __callback(*args, **kwargs)\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/click/decorators.py\", line 26, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/feast/cli.py\", line 519, in apply_total_command\r\n    apply_total(repo_config, repo, skip_source_validation)\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/feast/usage.py\", line 283, in wrapper\r\n    return func(*args, **kwargs)\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/feast/repo_operations.py\", line 335, in apply_total\r\n    apply_total_with_repo_instance(\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/feast/repo_operations.py\", line 296, in apply_total_with_repo_instance\r\n    registry_diff, infra_diff, new_infra = store.plan(repo)\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/feast/usage.py\", line 294, in wrapper\r\n    raise exc.with_traceback(traceback)\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/feast/usage.py\", line 283, in wrapper\r\n    return func(*args, **kwargs)\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/feast/feature_store.py\", line 734, in plan\r\n    registry_diff = diff_between(\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/feast/diff/registry_diff.py\", line 289, in diff_between\r\n    diff_registry_objects(current_obj, e, object_type)\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/feast/diff/registry_diff.py\", line 142, in diff_registry_objects\r\n    if current != new:\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/feast/feature_view.py\", line 249, in __eq__\r\n    or self.stream_source != other.stream_source\r\n  File \"/home/stefano/.virtualenvs/feast-pushsource-issue-39/lib/python3.9/site-packages/feast/data_source.py\", line 763, in __eq__\r\n    raise TypeError(\"Comparisons should only involve PushSource class objects.\")\r\nTypeError: Comparisons should only involve PushSource class objects.\r\n```\r\n\r\n### Specifications\r\n\r\n- Version: Feast v0.24.1\r\n- Platform: Linux (ubuntu 20) with Python 3.9\r\n- Subsystem:\r\n\r\n## Possible Solution\r\n\r\nWhen comparing \"existing\" and \"desired\" repo structure, the push sources are\r\ncompared (old vs new) to check if there are changes.\r\nBut for `PushSource` (as well as for `KafkaSource`, `RequestSource` and `KinesisSource` for that matter)\r\nthe comparison breaks with the error above in their `__eq__` method: the first thing\r\nhappening in the method is \"raise error, unless `isinstance(other, PushSource)`\".\r\n\r\nThis is at odds with the superclass `DataSource`, whose `__eq__` starts with: `if other is None: return False`. If subclasses had this,\r\nno errors would be raised and the feature repo's structure could have been modified (in particular, inserting/removing\r\na push source between a batch source and a feature view, at will).\r\n\r\n","author":{"url":"https://github.com/hemidactylus","@type":"Person","name":"hemidactylus"},"datePublished":"2022-09-12T20:54:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/3207/feast/issues/3207"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c38fc0ff-887b-54e9-6753-d7be01ea3f5a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8E54:DBDF5:1FFB679:2A6AEE5:6971AF60
html-safe-noncef1514f8697454b8285927598b77af5fcb6b40c924c32c1d9b10df95b2426691e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTU0OkRCREY1OjFGRkI2Nzk6MkE2QUVFNTo2OTcxQUY2MCIsInZpc2l0b3JfaWQiOiI4Njk2MDk2NDY1ODE1MTg3Mjk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb37aec708c25afea57e795e3132b83dc77f1927b6a223fb9694438787526a597
hovercard-subject-tagissue:1370506685
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/3207/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5f14e662b055f3a7870bb56faa1c59dc1f2ce2a84352adab599a2a9088d308dc/feast-dev/feast/issues/3207
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5f14e662b055f3a7870bb56faa1c59dc1f2ce2a84352adab599a2a9088d308dc/feast-dev/feast/issues/3207
og:image:altExpected Behavior The command feast apply (or plan) is never supposed to raise an error. In particular, one may want to insert a push source into an existing repo, between a batch source and a Feat...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehemidactylus
hostnamegithub.com
expected-hostnamegithub.com
None2b0f2f00499ad3dd2c21ad030a3c403edca54df20ea256f6517c6d8c4fa3a1a4
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
release979375c570cc30aefe2a734083debe402a612209
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/3207#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F3207
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%2F3207
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/3207
Reloadhttps://github.com/feast-dev/feast/issues/3207
Reloadhttps://github.com/feast-dev/feast/issues/3207
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.6k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Code https://github.com/feast-dev/feast
Issues 179 https://github.com/feast-dev/feast/issues
Pull requests 62 https://github.com/feast-dev/feast/pulls
Discussions https://github.com/feast-dev/feast/discussions
Actions https://github.com/feast-dev/feast/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/feast-dev/feast/security
Please reload this pagehttps://github.com/feast-dev/feast/issues/3207
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/3207
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/3207
Error raised when planning/applying a change that inserts/removes a push sourcehttps://github.com/feast-dev/feast/issues/3207#top
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/hemidactylus
https://github.com/hemidactylus
hemidactylushttps://github.com/hemidactylus
on Sep 12, 2022https://github.com/feast-dev/feast/issues/3207#issue-1370506685
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.