Fix datasets task 7309: pin pyarrow < 20.0 for geoparquet compatibility#43
Merged
akhatua2 merged 1 commit intocooperbench:mainfrom Mar 21, 2026
Merged
Conversation
PyArrow 20.0 changed default string type mapping, causing geoparquet geometry columns to report as 'large_string' instead of 'string'. The pre-existing test_parquet_read_geoparquet asserts dtype == 'string', breaking all feature pairs for this task. Pin pyarrow to >=17.0.0,<20.0.0 to keep a modern version while avoiding the large_string default change. The Docker image needs to be rebuilt.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pyarrow==20.0.0large_stringinstead ofstringtest_parquet_read_geoparquetassertsdataset.features[feature].dtype == 'string', which fails withlarge_stringFix
Change the pyarrow pin in the Dockerfile from:
to:
The Docker image (
akhatua/cooperbench-huggingface-datasets:task7309) needs to be rebuilt and pushed to DockerHub after this change.Test plan