René's URL Explorer Experiment


Title: Bug: TypeError / ValueError when materializing Array(String) feature views with Athena offline store · Issue #6325 · feast-dev/feast · GitHub

Open Graph Title: Bug: TypeError / ValueError when materializing Array(String) feature views with Athena offline store · Issue #6325 · feast-dev/feast

X Title: Bug: TypeError / ValueError when materializing Array(String) feature views with Athena offline store · Issue #6325 · feast-dev/feast

Description: Description Materializing feature views that contain Array(String) columns using the Athena offline store fails intermittently with one of two errors: Error 1: ValueError: The truth value of an empty array is ambiguous Triggered when an ...

Open Graph Description: Description Materializing feature views that contain Array(String) columns using the Athena offline store fails intermittently with one of two errors: Error 1: ValueError: The truth value of an emp...

X Description: Description Materializing feature views that contain Array(String) columns using the Athena offline store fails intermittently with one of two errors: Error 1: ValueError: The truth value of an emp...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: TypeError / ValueError when materializing Array(String) feature views with Athena offline store","articleBody":"## Description\n\nMaterializing feature views that contain `Array(String)` columns using the Athena offline store fails intermittently with one of two errors:\n\n### Error 1: `ValueError: The truth value of an empty array is ambiguous`\n\nTriggered when an entity row has no values set for an array column (e.g. `tags = []`).\n\n```\nFile \".../feast/type_map.py\", line 772, in _python_value_to_proto_value\n    elif not pd.isnull(value):\nValueError: The truth value of an empty array is ambiguous. Use `array.size \u003e 0` to check that an array is not empty.\n```\n\n### Error 2: `TypeError: bad argument type for built-in operation`\n\nTriggered when any user has values in an array column.\n\n```\nFile \".../feast/type_map.py\", line 905, in \u003clistcomp\u003e\n    ProtoValue(**{field_name: proto_type(val=value)})\nTypeError: bad argument type for built-in operation\n```\n\n## Root Cause\n\nArrow/Athena deserializes `Array(String)` feature columns as `numpy.ndarray` with `object` dtype rather than plain Python lists. Two code paths in `type_map.py` do not handle this:\n\n1. **Scalar null-check** (`_convert_scalar_values_to_proto`): The line `elif not pd.isnull(value)` calls `pd.isnull()` on a numpy array, which returns an array of bools — then `not \u003carray\u003e` raises `ValueError` because the truth value is ambiguous.\n\n2. **Generic list conversion** (`_convert_list_values_to_proto`): The call `proto_type(val=value)` passes the raw `numpy.ndarray` directly to the protobuf constructor. Protobuf rejects non-list types and raises `TypeError`. Additionally, Arrow nullable columns can produce `None` elements inside the ndarray, which protobuf `StringList` also rejects.\n\n3. **Type validation** (`_validate_collection_item_types`): `None` elements inside an ndarray fail the `type(item) in valid_types` check before they can be sanitized downstream.\n\n## Steps to Reproduce\n\n1. Define a `FeatureView` with an `Array(String)` field:\n   ```python\n   Field(name=\"tags\", dtype=Array(String))\n   ```\n2. Materialize from Athena where some rows have non-empty arrays, some have empty arrays, and some have NULL values in array elements.\n3. Observe `ValueError` or `TypeError` in `feast/type_map.py`.\n\n## Expected Behavior\n\nMaterialization completes successfully. Array columns from Arrow/Athena are converted to proto-safe Python lists, with `None` elements replaced by empty string.\n\n## Environment\n\n- Feast version: (any version with the generic list proto conversion)\n- Offline store: Athena\n- Python: 3.11\n- Feature column type: `Array(String)` (maps to `ValueType.STRING_LIST`)\n\n## Fix\n\nI opened a PR with a fix for this issue: https://github.com/feast-dev/feast/pull/6324","author":{"url":"https://github.com/alan-gauthier-jt","@type":"Person","name":"alan-gauthier-jt"},"datePublished":"2026-04-24T08:19:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6325/feast/issues/6325"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:25800d8d-fa81-caf6-5b80-c196704a0d5f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDB14:C0192:1F88:28C2:6A4E60BB
html-safe-nonce1df20d443c79ecd78c171bad834aed51539e9ac95d33e9225e171f5f974e2db8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjE0OkMwMTkyOjFGODg6MjhDMjo2QTRFNjBCQiIsInZpc2l0b3JfaWQiOiI2OTYxNjU0NzIwMjY0ODIyOTcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5d02d27647298cdf746e140928b97da5e1e2ca215fbaf38feff7f086c5e846b7
hovercard-subject-tagissue:4321609457
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/6325/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7a6e6d6a03c323ba941f8149df7ecd46b9f37e94427e24f89cbf986f9db48dbd/feast-dev/feast/issues/6325
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7a6e6d6a03c323ba941f8149df7ecd46b9f37e94427e24f89cbf986f9db48dbd/feast-dev/feast/issues/6325
og:image:altDescription Materializing feature views that contain Array(String) columns using the Athena offline store fails intermittently with one of two errors: Error 1: ValueError: The truth value of an emp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealan-gauthier-jt
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
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
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/6325#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F6325
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%2Fissues%2F6325
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/6325
Reloadhttps://github.com/feast-dev/feast/issues/6325
Reloadhttps://github.com/feast-dev/feast/issues/6325
Please reload this pagehttps://github.com/feast-dev/feast/issues/6325
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
#6324https://github.com/feast-dev/feast/pull/6324
#6388https://github.com/feast-dev/feast/pull/6388
Bug: TypeError / ValueError when materializing Array(String) feature views with Athena offline storehttps://github.com/feast-dev/feast/issues/6325#top
#6324https://github.com/feast-dev/feast/pull/6324
#6388https://github.com/feast-dev/feast/pull/6388
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/alan-gauthier-jt
alan-gauthier-jthttps://github.com/alan-gauthier-jt
on Apr 24, 2026https://github.com/feast-dev/feast/issues/6325#issue-4321609457
#6324https://github.com/feast-dev/feast/pull/6324
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.