René's URL Explorer Experiment


Title: fix: Handle numpy.ndarray from Arrow/Athena in Array(String) materialisation by Abhishek8108 · Pull Request #6388 · feast-dev/feast · GitHub

Open Graph Title: fix: Handle numpy.ndarray from Arrow/Athena in Array(String) materialisation by Abhishek8108 · Pull Request #6388 · feast-dev/feast

X Title: fix: Handle numpy.ndarray from Arrow/Athena in Array(String) materialisation by Abhishek8108 · Pull Request #6388 · feast-dev/feast

Description: Summary Closes #6325 Materialising feature views with Array(String) columns via the Athena offline store fails with TypeError or ValueError. Arrow/Athena deserialises these columns as numpy.ndarray with object dtype instead of plain Python lists, and two code paths in type_map.py do not handle this. Root causes 1. _validate_collection_item_types — TypeError on None elements inside ndarrays Nullable Arrow columns embed None elements inside the ndarray. The validator iterates over the ndarray directly and checks type(item) in valid_types. For STRING_LIST, valid_types = [np.str_, str], and type(None) is not in that set, so it raises TypeError: bad argument type for built-in operation. 2. _convert_list_values_to_proto generic path — TypeError from protobuf The generic list conversion calls StringList(val=value) where value is a numpy.ndarray. Protobuf rejects non-list inputs with TypeError: bad argument type for built-in operation. Fix In _validate_collection_item_types: coerce ndarray to a plain Python list via .tolist() before element-level checks, and skip None elements (nullable elements are valid in Arrow columns). In the generic conversion path of _convert_list_values_to_proto: apply the same .tolist() coercion so protobuf always receives a plain Python list. None elements are stripped (protobuf fixed-type lists cannot hold nulls). The fix covers all three failure modes from #6325: np.array(['a', 'b', 'c']) → ['a', 'b', 'c'] ✓ np.array(['a', None, 'c']) → ['a', 'c'] (None stripped) ✓ np.array([]) → [] ✓ Changes sdk/python/feast/type_map.py — two targeted edits, no API surface change sdk/python/tests/unit/test_type_map.py — four new unit tests in TestAthenaArrayStringConversion Test plan TestAthenaArrayStringConversion::test_string_list_from_ndarray — plain ndarray converts correctly TestAthenaArrayStringConversion::test_string_list_from_ndarray_with_none_elements — None elements stripped, no TypeError TestAthenaArrayStringConversion::test_string_list_from_empty_ndarray — empty ndarray yields empty list, no ValueError TestAthenaArrayStringConversion::test_string_list_mixed_null_and_ndarray_rows — mix of null rows and ndarray rows ruff format --check and ruff check — clean on both modified files Existing test_type_map.py tests unaffected

Open Graph Description: Summary Closes #6325 Materialising feature views with Array(String) columns via the Athena offline store fails with TypeError or ValueError. Arrow/Athena deserialises these columns as numpy.ndarray...

X Description: Summary Closes #6325 Materialising feature views with Array(String) columns via the Athena offline store fails with TypeError or ValueError. Arrow/Athena deserialises these columns as numpy.ndarray...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e40b15df-9a51-2f6c-8197-34df5654dd4c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD948:1EA4:42450B0:5DCE2F9:6A50050E
html-safe-nonceeec5cab7d444c8ad7e36f684a5bfacabe21f37effd2de052f3242eae3bd49fc7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTQ4OjFFQTQ6NDI0NTBCMDo1RENFMkY5OjZBNTAwNTBFIiwidmlzaXRvcl9pZCI6IjQ0MTY3MzM4OTQxMTc2ODg1OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4a7ee97da38eb00b3a9babe594e0e89c774a2d0e772fa402d21effad92ba65b5
hovercard-subject-tagpull_request:3654391747
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/6388/files
twitter:imagehttps://avatars.githubusercontent.com/u/87538407?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/87538407?s=400&v=4
og:image:altSummary Closes #6325 Materialising feature views with Array(String) columns via the Athena offline store fails with TypeError or ValueError. Arrow/Athena deserialises these columns as numpy.ndarray...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None56eec25a3430492dd6ec2a480eb33256a0da5192d5714b0db4f5ab5f33203d94
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
releasee155b8a71f9284454f73118dfe5e634e74f7afb3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/feast-dev/feast/pull/6388/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fpull%2F6388%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%2F6388%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/6388/files
Reloadhttps://github.com/feast-dev/feast/pull/6388/files
Reloadhttps://github.com/feast-dev/feast/pull/6388/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/6388/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 213 https://github.com/feast-dev/feast/issues
Pull requests 175 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
Abhishek8108https://github.com/Abhishek8108
feast-dev:masterhttps://github.com/feast-dev/feast/tree/master
Abhishek8108:fix/athena-array-string-numpy-ndarray-proto-conversionhttps://github.com/Abhishek8108/feast/tree/fix/athena-array-string-numpy-ndarray-proto-conversion
Conversation 0 https://github.com/feast-dev/feast/pull/6388
Commits 1 https://github.com/feast-dev/feast/pull/6388/commits
Checks 26 https://github.com/feast-dev/feast/pull/6388/checks
Files changed https://github.com/feast-dev/feast/pull/6388/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/6388/files
fix: Handle numpy.ndarray from Arrow/Athena in Array(String) materialisation https://github.com/feast-dev/feast/pull/6388/files#top
Show all changes 1 commit https://github.com/feast-dev/feast/pull/6388/files
1250453 fix: Handle numpy.ndarray from Arrow/Athena in Array(String) material… Abhishek8108 May 9, 2026 https://github.com/feast-dev/feast/pull/6388/commits/1250453a4411811157dec30bc676e716644b0d51
Clear filters https://github.com/feast-dev/feast/pull/6388/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/6388/files
Please reload this pagehttps://github.com/feast-dev/feast/pull/6388/files
type_map.py https://github.com/feast-dev/feast/pull/6388/files#diff-c8d42aa830ab4d8fd6aa406e94e35664969bb39435ec15c7627ac1606fb185c0
test_type_map.py https://github.com/feast-dev/feast/pull/6388/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/6388/files#diff-c8d42aa830ab4d8fd6aa406e94e35664969bb39435ec15c7627ac1606fb185c0
View file https://github.com/feast-dev/feast/blob/1250453a4411811157dec30bc676e716644b0d51/sdk/python/feast/type_map.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/feast-dev/feast/pull/6388/{{ revealButtonHref }}
https://github.com/feast-dev/feast/pull/6388/files#diff-c8d42aa830ab4d8fd6aa406e94e35664969bb39435ec15c7627ac1606fb185c0
https://github.com/feast-dev/feast/pull/6388/files#diff-c8d42aa830ab4d8fd6aa406e94e35664969bb39435ec15c7627ac1606fb185c0
https://github.com/feast-dev/feast/pull/6388/files#diff-c8d42aa830ab4d8fd6aa406e94e35664969bb39435ec15c7627ac1606fb185c0
https://github.com/feast-dev/feast/pull/6388/files#diff-c8d42aa830ab4d8fd6aa406e94e35664969bb39435ec15c7627ac1606fb185c0
https://github.com/feast-dev/feast/pull/6388/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/6388/files#diff-7993ac6fdd117f8808587f1b4d664e8dcc71bc3749bd9ac21a714bf3db441736
View file https://github.com/feast-dev/feast/blob/1250453a4411811157dec30bc676e716644b0d51/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/6388/{{ revealButtonHref }}
https://github.com/feast-dev/feast/pull/6388/files#diff-7993ac6fdd117f8808587f1b4d664e8dcc71bc3749bd9ac21a714bf3db441736
https://github.com/feast-dev/feast/pull/6388/files#diff-7993ac6fdd117f8808587f1b4d664e8dcc71bc3749bd9ac21a714bf3db441736
Please reload this pagehttps://github.com/feast-dev/feast/pull/6388/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.