René's URL Explorer Experiment


Title: Unify Feature Transformations and Feature Views · Issue #4584 · feast-dev/feast · GitHub

Open Graph Title: Unify Feature Transformations and Feature Views · Issue #4584 · feast-dev/feast

X Title: Unify Feature Transformations and Feature Views · Issue #4584 · feast-dev/feast

Description: Problem In Feast, the current On Demand Feature View executes feature transformations at read time. However, this behavior is not immediately obvious from the name "On Demand Feature View." The terms "On Demand" don't explicitly convey w...

Open Graph Description: Problem In Feast, the current On Demand Feature View executes feature transformations at read time. However, this behavior is not immediately obvious from the name "On Demand Feature View." The ter...

X Description: Problem In Feast, the current On Demand Feature View executes feature transformations at read time. However, this behavior is not immediately obvious from the name "On Demand Feature View.&quo...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unify Feature Transformations and Feature Views","articleBody":"# Problem\n\nIn Feast, the current On Demand Feature View executes feature transformations at read time. However, this behavior is not immediately obvious from the name \"On Demand Feature View.\" \n\nThe terms \"On Demand\" don't explicitly convey when the transformation occurs, leading to potential confusion for users trying to understand the timing and execution flow of feature transformations. Additionally, there's inconsistency in how different types of feature views (batch, streaming, on-demand) are declared and used, which can make the codebase less intuitive and harder to maintain.\n\n# Proposed Solution\nI propose we refactor and rename the way transformations are defined in Feast to make the execution timing explicit. Introducing a `@transform` decorator with a type parameter that accepts a `FeastTransformation` enum can achieve this clarity. The enum would define the transformation types:\n\n```python\nfrom enum import Enum\n\nclass FeastTransformation(Enum):\n    NONE = 0         # No transformations happening using Feast\n    ON_READ = 1      # Equivalent to the current On Demand Feature View\n    ON_WRITE = 2     # New: Transformations executed at write time\n    BATCH = 3        # New: Batch processing transformations\n    STREAMING = 4    # Migrates the existing stream_feature_view decorator\n\n@transform(\n    type=FeastTransformation.ON_WRITE,\n    schema=[...],\n    entity=[...],\n    sources=[...],\n    mode='python',\n)\ndef my_feature_view(inputs: List[Dict[str, float]]) -\u003e List[Dict[str, float]]:\n    # Transformation logic here\n    return outputs\n```\n\nBy explicitly declaring when the transformation should occur `{'ON_READ', 'ON_WRITE', 'BATCH', 'STREAMING'}`, the code becomes more readable, maintainable, and, more importantly, we will be able to remove a lot of duplicate, confusing code that obfuscates what is actually happening (particularly during the execution of `FeatureStore.apply()`).\n\n**This approach unifies the declaration of feature views and transformations, making it easier for users to understand and for developers to extend functionality in the future.*\n\n# Alternatives\n\n* Enhancing Documentation: Improving the existing documentation to better explain the behavior of On Demand Feature View without changing the code structure. \n  - This doesn't solve the inherent ambiguity in the naming.\n\n* Renaming Existing Decorators: Simply renaming on_demand_feature_view to something like on_read_feature_view to make the execution timing clearer. \n  - While this improves clarity, it doesn't address the inconsistency in how different feature views are declared.\n* Using Configuration Parameters: Adding parameters to existing decorators to specify execution timing. \n  - This could make the decorators more complex and doesn't provide a unified approach.\n\n# Additional Context\n**Consistency and Extensibility**: This change promotes a consistent method of declaring feature transformations, regardless of when they execute. It also sets a foundation for adding more transformation types in the future.\n\n**Clarity for New Users**: Making the execution timing explicit in the code helps new users understand the flow of data and transformations in Feast, reducing the learning curve.\n\n**Impact on Existing Codebase**: Careful consideration and planning would be needed to migrate existing code to the new structure without breaking functionality. Deprecation warnings and migration guides could facilitate this transition.\n\n**Community Feedback**: Engaging with the community to gather feedback on this proposed change could provide additional insights and help refine the solution.\n\n**Migration**: We can make the code backwards compatible and even provide some helper scripts to migrate to the new syntax but I think this is the right long term proposal that settles the several discussions we've had.\n\nhttps://github.com/feast-dev/feast/issues/4376\nhttps://github.com/feast-dev/feast/issues/4277\nhttps://github.com/feast-dev/feast/issues/3639\n\n\n[Document here](https://docs.google.com/document/d/1KXCXcsXq1bUvbSpfhnUjDSsu4HpuUZ5XiZoQyltCkvo/edit?tab=t.0#heading=h.g6j9jyjkf5sm)","author":{"url":"https://github.com/franciscojavierarceo","@type":"Person","name":"franciscojavierarceo"},"datePublished":"2024-09-28T09:44:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/4584/feast/issues/4584"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:642c6cb0-439f-381f-91b7-1ad019a6645d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id97A6:8B9E9:D1CA57:115CB45:696EE9EE
html-safe-nonce78c55c413952feeeab1b7f96aea7440cdd704d174e2c6297de4397848a7e34c5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0E2OjhCOUU5OkQxQ0E1NzoxMTVDQjQ1OjY5NkVFOUVFIiwidmlzaXRvcl9pZCI6IjY3NDMwMzM4MTk2NjI1NzYxMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5914a28d26816d07f3ac275958e160ad3d435cb2b0101649fe141a9347d9cd4d
hovercard-subject-tagissue:2554136904
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/4584/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e78ae8a3321d2885dce01af6fd4718ed69f3b9e547c24c8251a83f962394a988/feast-dev/feast/issues/4584
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e78ae8a3321d2885dce01af6fd4718ed69f3b9e547c24c8251a83f962394a988/feast-dev/feast/issues/4584
og:image:altProblem In Feast, the current On Demand Feature View executes feature transformations at read time. However, this behavior is not immediately obvious from the name "On Demand Feature View." The ter...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefranciscojavierarceo
hostnamegithub.com
expected-hostnamegithub.com
Noneb278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee
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
release39aed5006635ab6f45e6b77d23e73b08a00272a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/4584#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F4584
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%2F4584
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/4584
Reloadhttps://github.com/feast-dev/feast/issues/4584
Reloadhttps://github.com/feast-dev/feast/issues/4584
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 176 https://github.com/feast-dev/feast/issues
Pull requests 58 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/4584
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/4584
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/4584
Unify Feature Transformations and Feature Viewshttps://github.com/feast-dev/feast/issues/4584#top
https://github.com/franciscojavierarceo
https://github.com/HaoXuAI
kind/featureNew feature or requesthttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Ffeature%22
https://github.com/franciscojavierarceo
https://github.com/franciscojavierarceo
franciscojavierarceohttps://github.com/franciscojavierarceo
on Sep 28, 2024https://github.com/feast-dev/feast/issues/4584#issue-2554136904
#4376https://github.com/feast-dev/feast/issues/4376
#4277https://github.com/feast-dev/feast/issues/4277
#3639https://github.com/feast-dev/feast/issues/3639
Document herehttps://docs.google.com/document/d/1KXCXcsXq1bUvbSpfhnUjDSsu4HpuUZ5XiZoQyltCkvo/edit?tab=t.0#heading=h.g6j9jyjkf5sm
HaoXuAIhttps://github.com/HaoXuAI
franciscojavierarceohttps://github.com/franciscojavierarceo
kind/featureNew feature or requesthttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Ffeature%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.