Skip to content

fix: Support falling back to pandas when pyarrow is installed but too old#3387

Merged
mattijn merged 1 commit into
mainfrom
jommease/old_arrow
Mar 28, 2024
Merged

fix: Support falling back to pandas when pyarrow is installed but too old#3387
mattijn merged 1 commit into
mainfrom
jommease/old_arrow

Conversation

@jonmmease
Copy link
Copy Markdown
Contributor

Closes #3385 by catching RuntimeError along with ImportError in pyarrow_available.

This was a regression introduced in #3244 when the ImportError was swapped out for a RuntimeError without updating pyarrow_available.

@mattijn, could you give this a try to see if it takes care of the issue of an old pyarrow with pandas?

@mattijn
Copy link
Copy Markdown
Contributor

mattijn commented Mar 26, 2024

How can we report to a user if the version of pyarrow is too low when pandas is explicitly not installed?

@jonmmease jonmmease changed the title Support falling back to pandas when pyarrow is installed but too old fix: Support falling back to pandas when pyarrow is installed but too old Mar 26, 2024
@jonmmease
Copy link
Copy Markdown
Contributor Author

How can we report to a user if the version of pyarrow is too low when pandas is explicitly not installed?

I guess this is something we would want to work into your PR at #3384

@mattijn
Copy link
Copy Markdown
Contributor

mattijn commented Mar 26, 2024

Valid point!

@jonmmease
Copy link
Copy Markdown
Contributor Author

Ready for this to merge @mattijn?

@mattijn
Copy link
Copy Markdown
Contributor

mattijn commented Mar 28, 2024

I haven't had time to test this, but the fix looks legitimate and appropriate👍

@mattijn mattijn merged commit 2786dd3 into main Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

minimum pyarrow version enforced even if pandas is installed

3 participants