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: implement read_delta for datafusion #6411

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

lostmygithubaccount
Copy link
Member

closes #6384

one question is noted in the TODO -- my understanding is for csv and parquet we're using a native datafusion function for de-registering the files from the database, but we can't do that with delta yet?

datafusion has an issue open for native support: apache/datafusion#2025

also cleaned up a docstring issue I noticed in duckdb

# Our other backends support overwriting views / tables when reregistering
# TODO: datafusion doesn't natively support Delta Lake tables at this point,
# so we need to add this later?
# self._context.deregister_table(table_name)
Copy link
Member Author

@lostmygithubaccount lostmygithubaccount Jun 9, 2023

Choose a reason for hiding this comment

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

or should this line be uncommented still?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think whether support is native or not matters here, so this line should be uncommented.

Copy link
Member Author

Choose a reason for hiding this comment

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

that results in an error:

>       self._context.register_delta(table_name, source_table, **kwargs)
E       AttributeError: 'datafusion.SessionContext' object has no attribute 'register_delta'

ibis/backends/datafusion/__init__.py:275: AttributeError

@cpcloud cpcloud added this to the 6.0 milestone Jun 10, 2023
@cpcloud cpcloud added datafusion The Apache DataFusion backend deltalake Issues or PRs related to deltalake support labels Jun 10, 2023
Copy link
Member

@cpcloud cpcloud left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion The Apache DataFusion backend deltalake Issues or PRs related to deltalake support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: read_delta for datafusion
2 participants