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

Polars uses Arrow2 in their code. So should this lib #393

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

auyer
Copy link
Contributor

@auyer auyer commented Nov 1, 2022

Hi! This PR is mostly about compatibility with Polars.
With this, using return_type="polars" will have the same result as polars.from_sql

Both Polars itself and their integration with this lib uses Arrow2.

Reference to the integration: https://github.com/pola-rs/polars/blob/9dabbe5b4d0d21a65bf6e2a52062175485603a86/py-polars/polars/io.py#L1096

Also, for the from_arrow function, I believe testing the current API and then falling back to the old one should be preferable. But I can remove this from the PR if you disagree.

@wangxiaoying wangxiaoying merged commit fe54aec into sfu-db:main Nov 3, 2022
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.

2 participants