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

feat(#2597): allow pyarrow.dataset.Expression in filters kwarg #2600

Merged

Conversation

giacomorebecchi
Copy link
Contributor

Description

Allow pyarrow.dataset.Expression in filters kwarg of deltalake.DeltaTable.to_pyarrow_table and deltalake.DeltaTable.to_pandas methods, and remove code dupllication in favor of the pyarrow implementation.

Related Issue(s)

@github-actions github-actions bot added the binding/python Issues for the Python package label Jun 14, 2024
@giacomorebecchi giacomorebecchi force-pushed the 2597-allow-expression-in-filters branch from 16066bd to 6c9151b Compare June 14, 2024 16:09
@giacomorebecchi
Copy link
Contributor Author

@ion-elgreco fixed both errors that were spotted in the actions run, sorry for overlooking them!

@ion-elgreco ion-elgreco force-pushed the 2597-allow-expression-in-filters branch from 6c9151b to a3bf95e Compare June 14, 2024 16:12
@roeap
Copy link
Collaborator

roeap commented Jun 14, 2024

looks like we need to add a few type hints to the pyarrow pyi files (in this repo) for linting to pass.

@giacomorebecchi giacomorebecchi force-pushed the 2597-allow-expression-in-filters branch from a3bf95e to 5184ccb Compare June 16, 2024 15:05
@giacomorebecchi
Copy link
Contributor Author

looks like we need to add a few type hints to the pyarrow pyi files (in this repo) for linting to pass.

Please let me know if my last commit works, thanks for your patience!

@ion-elgreco ion-elgreco force-pushed the 2597-allow-expression-in-filters branch from 5184ccb to 1561d63 Compare June 16, 2024 21:11
ion-elgreco
ion-elgreco previously approved these changes Jun 16, 2024
Copy link
Collaborator

@ion-elgreco ion-elgreco left a comment

Choose a reason for hiding this comment

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

Nice change!

@ion-elgreco ion-elgreco merged commit b7b572b into delta-io:main Jun 17, 2024
22 of 23 checks passed
@giacomorebecchi giacomorebecchi deleted the 2597-allow-expression-in-filters branch June 17, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/python Issues for the Python package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow pyarrow.dataset.Expression in filters kwarg of deltalake.DeltaTable.to_pyarrow_table
3 participants