René's URL Explorer Experiment


Title: feat(spark): Add compute-on-read support for BatchFeatureView in get_… by SIDDHESH1564 · Pull Request #6357 · feast-dev/feast · GitHub

Open Graph Title: feat(spark): Add compute-on-read support for BatchFeatureView in get_… by SIDDHESH1564 · Pull Request #6357 · feast-dev/feast

X Title: feat(spark): Add compute-on-read support for BatchFeatureView in get_… by SIDDHESH1564 · Pull Request #6357 · feast-dev/feast

Description: What this PR does / why we need it: When using @batch_feature_view with TransformationMode.PYTHON in the Spark offline store, get_historical_features() fails with UNRESOLVED_COLUMN errors. This occurs because the PIT join SQL reads directly from the raw batch_source and expects transformed feature columns (e.g., aggregated outputs) to already exist in the source data. However, BFV transformations are only executed during feast materialize, not during offline retrieval. This PR introduces compute-on-read support for BatchFeatureView in SparkOfflineStore. Before generating the PIT join SQL, BFVs with a UDF are detected and their transformations are applied: Read the raw source into a Spark DataFrame Invoke the BFV's feature_transformation.udf() (same function used during materialization) Register the transformed DataFrame as a Spark temporary view Replace the table_subquery in the query context with the temp view name This enables reuse of BFV definitions during offline training without requiring pre-materialization or external ETL pipelines. The entire pipeline remains fully distributed in Spark. Which issue(s) this PR fixes: Fixes #6345 Checks I've made sure the tests are passing. My commits are signed off (git commit -s) My PR title follows conventional commits format Testing Strategy Unit tests Integration tests Manual tests Testing is not required for this change Added 7 unit tests covering: BFV with UDF → table_subquery replaced with temp view UDF invoked with source DataFrame Transformed DataFrame registered as temp view Plain FeatureView passes through unchanged BFV without UDF passes through unchanged Mixed BFV + plain FeatureView scenarios All non-transformation context fields preserved Misc Changes: sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark.py: Added BatchFeatureView import Added _apply_bfv_transformations() helper function Integrated call into get_historical_features() between query context construction and PIT join SQL generation sdk/python/tests/unit/infra/offline_stores/contrib/spark_offline_store/test_spark_bfv_compute_on_read.py (new): 7 unit tests for compute-on-read behavior

Open Graph Description: What this PR does / why we need it: When using @batch_feature_view with TransformationMode.PYTHON in the Spark offline store, get_historical_features() fails with UNRESOLVED_COLUMN errors. This occ...

X Description: What this PR does / why we need it: When using @batch_feature_view with TransformationMode.PYTHON in the Spark offline store, get_historical_features() fails with UNRESOLVED_COLUMN errors. This occ...

Opengraph URL: https://github.com/feast-dev/feast/pull/6357

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9271e972-05a4-cb45-0da6-e10d4b91ce5e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE368:B5AA6:1EA4DDD:29C4580:6A4F2B56
html-safe-nonce25d7218c96feb74b720d3c7dccdec5d6b847dce8c557ae0c6987f42a6278c660
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzY4OkI1QUE2OjFFQTREREQ6MjlDNDU4MDo2QTRGMkI1NiIsInZpc2l0b3JfaWQiOiI1Mzg0NTI3NDgyMDM5Nzc0MDM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac32261464d4cd9fcf4d363633cbcff7a2ef055e7720fd0554d96357e2eccd17b4
hovercard-subject-tagpull_request:3615640496
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/feast-dev/feast/pull/6357/files
twitter:imagehttps://avatars.githubusercontent.com/u/91747482?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/91747482?s=400&v=4
og:image:altWhat this PR does / why we need it: When using @batch_feature_view with TransformationMode.PYTHON in the Spark offline store, get_historical_features() fails with UNRESOLVED_COLUMN errors. This occ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b8f23afb982271f1b22258a94aede67a6b77760
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/feast-dev/feast/pull/6357/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fpull%2F6357%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2Fpull%2F6357%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=feast-dev%2Ffeast
Reloadhttps://github.com/feast-dev/feast/pull/6357/files
Reloadhttps://github.com/feast-dev/feast/pull/6357/files
Reloadhttps://github.com/feast-dev/feast/pull/6357/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/6357/files
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.4k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Star 7.1k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Code https://github.com/feast-dev/feast
Issues 212 https://github.com/feast-dev/feast/issues
Pull requests 172 https://github.com/feast-dev/feast/pulls
Discussions https://github.com/feast-dev/feast/discussions
Actions https://github.com/feast-dev/feast/actions
Security and quality 1 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 and quality https://github.com/feast-dev/feast/security
Insights https://github.com/feast-dev/feast/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ffeast-dev%2Ffeast%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ffeast-dev%2Ffeast%2Fissues%2Fnew%2Fchoose
ntkatholehttps://github.com/ntkathole
feast-dev:masterhttps://github.com/feast-dev/feast/tree/master
SIDDHESH1564:feature/spark-bfv-compute-on-readhttps://github.com/SIDDHESH1564/feast/tree/feature/spark-bfv-compute-on-read
Conversation 11 https://github.com/feast-dev/feast/pull/6357
Commits 7 https://github.com/feast-dev/feast/pull/6357/commits
Checks 26 https://github.com/feast-dev/feast/pull/6357/checks
Files changed https://github.com/feast-dev/feast/pull/6357/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/6357/files
feat(spark): Add compute-on-read support for BatchFeatureView in get_… https://github.com/feast-dev/feast/pull/6357/files#top
Show all changes 7 commits https://github.com/feast-dev/feast/pull/6357/files
11d69be feat(spark): add compute-on-read support for BatchFeatureView in get_… SIDDHESH1564 May 1, 2026 https://github.com/feast-dev/feast/pull/6357/commits/11d69be065e11c9e53c03201e6826535b6e1e8ef
c2a3d7a Merge branch 'master' into feature/spark-bfv-compute-on-read SIDDHESH1564 May 2, 2026 https://github.com/feast-dev/feast/pull/6357/commits/c2a3d7ac82fa3f08da73a0a3d3bc4090a2fdac47
9390de9 Add None check for batch_source in _apply_bfv_transformations SIDDHESH1564 May 2, 2026 https://github.com/feast-dev/feast/pull/6357/commits/9390de9cb24489cd77dd9b54f89a4017a2a6cc5b
a424bbf refactor(spark): use feature_view_utils helpers for BFV transformatio… SIDDHESH1564 May 2, 2026 https://github.com/feast-dev/feast/pull/6357/commits/a424bbf714f341f5c24d8dfc01f05012d1e7e308
c9e72de fix(spark): apply time-range filter before BFV UDF and update temp vi… SIDDHESH1564 May 3, 2026 https://github.com/feast-dev/feast/pull/6357/commits/c9e72deb51b50c490a8a7950061d15f40a7a88a1
502fad2 Merge branch 'master' into feature/spark-bfv-compute-on-read SIDDHESH1564 May 3, 2026 https://github.com/feast-dev/feast/pull/6357/commits/502fad28fbe81e905a95d4844f8dc2d022951738
e1e1764 refactor(spark): use resolve_feature_view_source_with_fallback for BF… SIDDHESH1564 May 3, 2026 https://github.com/feast-dev/feast/pull/6357/commits/e1e17647a74d1d3fee14f574c3832feba8439be2
Clear filters https://github.com/feast-dev/feast/pull/6357/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/6357/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/6357/files
spark.py https://github.com/feast-dev/feast/pull/6357/files#diff-ef3fce408c702d00aa891015376e83ff1084907c69c95cafacf5fae657fca486
test_spark_bfv_compute_on_read.py https://github.com/feast-dev/feast/pull/6357/files#diff-f8511fd90c602a0c9c181fe7db5dc6865c9d7985260e4d17760bd98872c981a6
https://github.com/feast-dev/feast/blob/master/CODEOWNERS#L10
sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark.pyhttps://github.com/feast-dev/feast/pull/6357/files#diff-ef3fce408c702d00aa891015376e83ff1084907c69c95cafacf5fae657fca486
View file https://github.com/SIDDHESH1564/feast/blob/e1e17647a74d1d3fee14f574c3832feba8439be2/sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/feast-dev/feast/pull/6357/{{ revealButtonHref }}
https://github.com/feast-dev/feast/pull/6357/files#diff-ef3fce408c702d00aa891015376e83ff1084907c69c95cafacf5fae657fca486
https://github.com/feast-dev/feast/pull/6357/files#diff-ef3fce408c702d00aa891015376e83ff1084907c69c95cafacf5fae657fca486
https://github.com/feast-dev/feast/pull/6357/files#diff-ef3fce408c702d00aa891015376e83ff1084907c69c95cafacf5fae657fca486
https://github.com/feast-dev/feast/pull/6357/files#diff-ef3fce408c702d00aa891015376e83ff1084907c69c95cafacf5fae657fca486
https://github.com/feast-dev/feast/pull/6357/files#diff-ef3fce408c702d00aa891015376e83ff1084907c69c95cafacf5fae657fca486
https://github.com/feast-dev/feast/pull/6357/files#diff-ef3fce408c702d00aa891015376e83ff1084907c69c95cafacf5fae657fca486
https://github.com/feast-dev/feast/blob/master/CODEOWNERS#L10
...s/unit/infra/offline_stores/contrib/spark_offline_store/test_spark_bfv_compute_on_read.pyhttps://github.com/feast-dev/feast/pull/6357/files#diff-f8511fd90c602a0c9c181fe7db5dc6865c9d7985260e4d17760bd98872c981a6
View file https://github.com/SIDDHESH1564/feast/blob/e1e17647a74d1d3fee14f574c3832feba8439be2/sdk/python/tests/unit/infra/offline_stores/contrib/spark_offline_store/test_spark_bfv_compute_on_read.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/feast-dev/feast/pull/6357/{{ revealButtonHref }}
Please reload this pagehttps://github.com/feast-dev/feast/pull/6357/files
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.