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 columns #7170

Merged
merged 2 commits into from
Sep 26, 2024
Merged

Support JSON lines with missing columns #7170

merged 2 commits into from
Sep 26, 2024

Conversation

albertvillanova
Copy link
Member

@albertvillanova albertvillanova commented Sep 25, 2024

Support JSON lines with missing columns.

Fix #7169.

The implemented test raised:

datasets.table.CastError: Couldn't cast
age: int64
to
{'age': Value(dtype='int32', id=None), 'name': Value(dtype='string', id=None)}
because column names don't match

Related to:

@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 JSON lines with missing column Support JSON lines with missing columns Sep 25, 2024
@albertvillanova albertvillanova merged commit e450bd3 into main Sep 26, 2024
15 checks passed
@albertvillanova albertvillanova deleted the fix-7169 branch September 26, 2024 06:42
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 columns raise CastError
2 participants