René's URL Explorer Experiment


Title: fix: Handle numpy ndarray in Array(String) materialization by SIDDHESH1564 · Pull Request #6327 · feast-dev/feast · GitHub

Open Graph Title: fix: Handle numpy ndarray in Array(String) materialization by SIDDHESH1564 · Pull Request #6327 · feast-dev/feast

X Title: fix: Handle numpy ndarray in Array(String) materialization by SIDDHESH1564 · Pull Request #6327 · feast-dev/feast

Description: What this PR does / why we need it: Materializing feature views that contain Array(String) columns using the Athena offline store fails with TypeError or ValueError. Root cause: Arrow/Athena deserializes array columns as numpy.ndarray (object dtype) instead of Python lists, which breaks assumptions in feast/type_map.py. Issues observed: _validate_collection_item_types: None elements inside ndarray fail strict type validation. _convert_list_values_to_proto: Passing numpy.ndarray directly to protobuf constructors (e.g. StringList) raises TypeError. None elements are also invalid for protobuf repeated fields. _convert_scalar_values_to_proto: pd.isnull(ndarray) returns an array of booleans; applying not raises ValueError ("truth value of an empty array is ambiguous"). Fix implemented: Convert numpy.ndarray → Python list using .tolist() before proto conversion Replace None elements with type-appropriate defaults: "" (string), 0 (int), 0.0 (float), False (bool) Allow None during intermediate validation in _validate_collection_item_types Which issue(s) this PR fixes: Fixes #6325 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 Details: Added TestNdarrayListConversion in test_type_map.py with regression coverage for: ndarray string/int/double/bool list conversions Replacement of None elements with defaults Empty ndarray producing null ProtoValue Mixed batch scenarios (populated array + None + empty array) Misc Adds regression coverage to ensure stable handling of ndarray-backed array feature columns from Athena/Arrow going forward.

Open Graph Description: What this PR does / why we need it: Materializing feature views that contain Array(String) columns using the Athena offline store fails with TypeError or ValueError. Root cause: Arrow/Athena deseri...

X Description: What this PR does / why we need it: Materializing feature views that contain Array(String) columns using the Athena offline store fails with TypeError or ValueError. Root cause: Arrow/Athena deseri...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:03f28ccc-7e9a-3168-e158-268f7181b8d7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC5CE:165D8F:2979AF:395F5B:6A4FC087
html-safe-noncefc05d0c85b7fccff55a7360eb84b64b51e65239f01abbfad54b4f9153e4c2791
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUNFOjE2NUQ4RjoyOTc5QUY6Mzk1RjVCOjZBNEZDMDg3IiwidmlzaXRvcl9pZCI6IjE2NTIyODExNDAzOTQ4MzYxMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb13b392a8704416bb92a5bb62b886f5f494f022674c3d0d64d7cdefe61752ab3
hovercard-subject-tagpull_request:3580748785
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/6327/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: Materializing feature views that contain Array(String) columns using the Athena offline store fails with TypeError or ValueError. Root cause: Arrow/Athena deseri...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7d8f8209b188a80e19a6957836ab9229715797be5db1a04163963c674ccc33f6
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
releaseea848e83cf3bf3613dd7b13d52965a684fd23ec5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/feast-dev/feast/pull/6327/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fpull%2F6327%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%2F6327%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/6327/files
Reloadhttps://github.com/feast-dev/feast/pull/6327/files
Reloadhttps://github.com/feast-dev/feast/pull/6327/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/6327/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 174 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
SIDDHESH1564https://github.com/SIDDHESH1564
feast-dev:masterhttps://github.com/feast-dev/feast/tree/master
SIDDHESH1564:fix/ndarray-array-string-materializationhttps://github.com/SIDDHESH1564/feast/tree/fix/ndarray-array-string-materialization
Conversation 8 https://github.com/feast-dev/feast/pull/6327
Commits 7 https://github.com/feast-dev/feast/pull/6327/commits
Checks 5 https://github.com/feast-dev/feast/pull/6327/checks
Files changed https://github.com/feast-dev/feast/pull/6327/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/6327/files
fix: Handle numpy ndarray in Array(String) materialization https://github.com/feast-dev/feast/pull/6327/files#top
Show all changes 7 commits https://github.com/feast-dev/feast/pull/6327/files
62f947a fix: Handle numpy ndarray in Array(String) materialization SIDDHESH1564 Apr 24, 2026 https://github.com/feast-dev/feast/pull/6327/commits/62f947a3bd7bd34c0809e53aa5d5aa2592e1ea06
e754d58 fix: Use NULL_TIMESTAMP_INT_VALUE for UNIX_TIMESTAMP_LIST default SIDDHESH1564 Apr 24, 2026 https://github.com/feast-dev/feast/pull/6327/commits/e754d58271f3f9938b72244b1782c31b0cc5803c
c4b6398 fix: correct test expectations for empty ndarray list conversion SIDDHESH1564 Apr 25, 2026 https://github.com/feast-dev/feast/pull/6327/commits/c4b639851e891dff7f2251611e78a013f95eb80e
c77302a fix: null semantics for empty ndarray and revert set-type validation … SIDDHESH1564 Apr 25, 2026 https://github.com/feast-dev/feast/pull/6327/commits/c77302a3bfb1d75e8771e1087cfb95f27c770749
e6c69d5 fix: only convert empty ndarray to null, preserve empty Python lists SIDDHESH1564 Apr 25, 2026 https://github.com/feast-dev/feast/pull/6327/commits/e6c69d5f38059c5fae0227fc82fa13ef70818505
6434228 Merge branch 'master' into fix/ndarray-array-string-materialization SIDDHESH1564 Apr 25, 2026 https://github.com/feast-dev/feast/pull/6327/commits/6434228ef039fa1b7dedf489cfbe30d469784ee0
99644e4 Merge branch 'master' into fix/ndarray-array-string-materialization SIDDHESH1564 May 1, 2026 https://github.com/feast-dev/feast/pull/6327/commits/99644e4c0fc77ec4789c035acb1bf8696936356e
Clear filters https://github.com/feast-dev/feast/pull/6327/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/6327/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/6327/files
type_map.py https://github.com/feast-dev/feast/pull/6327/files#diff-c8d42aa830ab4d8fd6aa406e94e35664969bb39435ec15c7627ac1606fb185c0
test_type_map.py https://github.com/feast-dev/feast/pull/6327/files#diff-7993ac6fdd117f8808587f1b4d664e8dcc71bc3749bd9ac21a714bf3db441736
https://github.com/feast-dev/feast/blob/master/CODEOWNERS#L10
sdk/python/feast/type_map.pyhttps://github.com/feast-dev/feast/pull/6327/files#diff-c8d42aa830ab4d8fd6aa406e94e35664969bb39435ec15c7627ac1606fb185c0
View file https://github.com/SIDDHESH1564/feast/blob/99644e4c0fc77ec4789c035acb1bf8696936356e/sdk/python/feast/type_map.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/feast-dev/feast/pull/6327/{{ revealButtonHref }}
https://github.com/feast-dev/feast/pull/6327/files#diff-c8d42aa830ab4d8fd6aa406e94e35664969bb39435ec15c7627ac1606fb185c0
https://github.com/feast-dev/feast/pull/6327/files#diff-c8d42aa830ab4d8fd6aa406e94e35664969bb39435ec15c7627ac1606fb185c0
https://github.com/feast-dev/feast/pull/6327/files#diff-c8d42aa830ab4d8fd6aa406e94e35664969bb39435ec15c7627ac1606fb185c0
https://github.com/feast-dev/feast/pull/6327/files#diff-c8d42aa830ab4d8fd6aa406e94e35664969bb39435ec15c7627ac1606fb185c0
https://github.com/feast-dev/feast/blob/master/CODEOWNERS#L10
sdk/python/tests/unit/test_type_map.pyhttps://github.com/feast-dev/feast/pull/6327/files#diff-7993ac6fdd117f8808587f1b4d664e8dcc71bc3749bd9ac21a714bf3db441736
View file https://github.com/SIDDHESH1564/feast/blob/99644e4c0fc77ec4789c035acb1bf8696936356e/sdk/python/tests/unit/test_type_map.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/feast-dev/feast/pull/6327/{{ revealButtonHref }}
https://github.com/feast-dev/feast/pull/6327/files#diff-7993ac6fdd117f8808587f1b4d664e8dcc71bc3749bd9ac21a714bf3db441736
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.