Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support JSON lines with missing struct fields #7160

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Conversation

albertvillanova
Copy link
Member

@albertvillanova albertvillanova commented Sep 23, 2024

Support JSON lines with missing struct fields.

Fix #7159.

The implemented test raised:

TypeError: Couldn't cast array of type
struct<age: int64>
to
{'age': Value(dtype='int32', id=None), 'name': Value(dtype='string', id=None)}

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@albertvillanova albertvillanova changed the title Support dataset examples with missing struct fields Support JSON lines with missing struct fields Sep 23, 2024
@albertvillanova albertvillanova merged commit 2eb4edb into main Sep 23, 2024
15 checks passed
@albertvillanova albertvillanova deleted the fix-7159 branch September 23, 2024 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON lines with missing struct fields raise TypeError: Couldn't cast array
3 participants