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

Fix add_column on datasets with indices mapping #3647

Merged
merged 4 commits into from
Jan 28, 2022
Merged

Fix add_column on datasets with indices mapping #3647

merged 4 commits into from
Jan 28, 2022

Conversation

mariosasko
Copy link
Collaborator

My initial idea was to avoid the flatten_indices call and reorder a new column instead, but in the end I decided to follow concatenate_datasets and use flatten_indices to avoid padding when dataset._indices.num_rows != dataset._data.num_rows.

Fix #3599

Copy link
Member

@lhoestq lhoestq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix ! Do you think we can include this in today's patch release ?

tests/test_arrow_dataset.py Outdated Show resolved Hide resolved
@mariosasko
Copy link
Collaborator Author

Sure, let's include this in today's release.

@lhoestq
Copy link
Member

lhoestq commented Jan 28, 2022

Cool ! The windows CI should be fixed on master now, feel free to merge :)

@mariosasko mariosasko merged commit e8cd145 into master Jan 28, 2022
@mariosasko mariosasko deleted the fix-3599 branch January 28, 2022 15:35
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.

The add_column() method does not work if used on dataset sliced with select()
2 participants