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 Data Explorer crash when changing a pandas.DataFrame schema after first sorting a column #2581

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

wesm
Copy link
Contributor

@wesm wesm commented Mar 29, 2024

Addresses #2579

The sort keys weren't being discarded, and the backend was trying to sort a column index that no longer existed.

QA Notes

Load flights.parquet in Google Drive, sort by sched_arr_time, then change the dataset to

flights = flights[['origin', 'dest']]

Before this change, the Python runtime was throwing an exception

@wesm
Copy link
Contributor Author

wesm commented Mar 29, 2024

Merging since this is a small bugfix that would be nice to get into the next build, any feedback I can handle in a subsequent PR in this code

@wesm wesm merged commit fe73a9a into main Mar 29, 2024
27 checks passed
@wesm wesm deleted the bug/de-pandas-schema-change-after-sort branch March 29, 2024 22:49
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.

1 participant