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

refactor(impala): remove impala table #9840

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

jcrist
Copy link
Member

@jcrist jcrist commented Aug 14, 2024

This removes the ImpalaTable subclass. Relevant methods that were on that class have been moved to the Backend class instead.

We used to have backend-specific subclasses of Table that added some backend-specific methods. Most of those were removed in prior releases, ImpalaTable was the last remaining one.

As this is a breaking change, we should hold off on merging this until we're ready to start prepping for a 10.0 release. Depends on #9839.

Fixes #9365.

@jcrist jcrist added impala The Apache Impala backend breaking change Changes that introduce an API break at any level labels Aug 14, 2024
@jcrist
Copy link
Member Author

jcrist commented Aug 14, 2024

Ope, forgot to update the docs. I'll take care of that later.

@gforsyth gforsyth added this to the 10.0 milestone Aug 15, 2024
@contang0
Copy link

contang0 commented Sep 5, 2024

What impact will this have on Impala backend users, if any?

Thanks for exposing tbl_properties. This is useful and I use it in my SQL-based work with Impala.

@gforsyth gforsyth force-pushed the remove-impala-table branch from 94856e0 to ecb5851 Compare December 5, 2024 17:24
@github-actions github-actions bot added the tests Issues or PRs related to tests label Dec 5, 2024
@gforsyth
Copy link
Member

gforsyth commented Dec 5, 2024

What impact will this have on Impala backend users, if any?

The only impact on Impala users is the removal of certain methods on the (now removed) ImpalaTable class. So while previously with Impala you could do something like my_table.insert(some_rows), now you have to do con.insert(my_table, some_rows), which is consistent with all the other backends.

jcrist and others added 2 commits December 5, 2024 12:26
BREAKING CHANGE: The `ImpalaTable` subclass has been removed. Relevant
Impala-specific methods that were on the `ImpalaTable` class have been
moved to the `Backend` class, please use those instead (e.g.
`con.add_partition` instead of `table.add_partition`).
@gforsyth gforsyth force-pushed the remove-impala-table branch from ecb5851 to 1111a90 Compare December 5, 2024 17:31
Copy link
Member

@gforsyth gforsyth left a comment

Choose a reason for hiding this comment

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

:shipit:

@gforsyth gforsyth merged commit e38eb83 into ibis-project:main Dec 5, 2024
76 checks passed
gforsyth added a commit that referenced this pull request Dec 6, 2024
## Description of changes

Followup to #9840 -- updates the Impala backend docs to remove
references to the (now removed) table methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Changes that introduce an API break at any level impala The Apache Impala backend tests Issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: remove ImpalaTable subclass
3 participants