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

depr(api): deprecate filtering/expression projection in Table.__getitem__ #10073

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

jcrist
Copy link
Member

@jcrist jcrist commented Sep 9, 2024

This PR deprecates filtering and expression projection in Table.__getitem__. See the relevant issue (#10045) for reasoning.

Currently the warning says we'll remove in 10.0 - if we think that's too short a deprecation period I'm happy to bump to 11.0.

The magic syntax is old and was used in quite a few places in the test suite and docs. I think I got most of them, but won't be surprised if this PR fails CI initially due to a few lingering references.

Fixes #10045.

"deprecated and will be removed in version 10.0. Please use "
"`Table.select` or `Table.filter` instead.",
FutureWarning,
)
Copy link
Member Author

Choose a reason for hiding this comment

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

The only relevant code is here, everything else is swapping table[...] for either select or filter in the tests or docs.

@jcrist jcrist force-pushed the depr-magic-getitem branch 2 times, most recently from 0d7ccf2 to 6059eae Compare September 9, 2024 22:31
@jcrist jcrist added the ci-run-cloud Add this label to trigger a run of BigQuery, Snowflake, and Databricks backends in CI label Sep 9, 2024
@ibis-docs-bot ibis-docs-bot bot removed the ci-run-cloud Add this label to trigger a run of BigQuery, Snowflake, and Databricks backends in CI label Sep 9, 2024
@jcrist jcrist added the ci-run-cloud Add this label to trigger a run of BigQuery, Snowflake, and Databricks backends in CI label Sep 10, 2024
@ibis-docs-bot ibis-docs-bot bot removed the ci-run-cloud Add this label to trigger a run of BigQuery, Snowflake, and Databricks backends in CI label Sep 10, 2024
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.

What a slog! Thanks!

@cpcloud cpcloud added this to the 9.5 milestone Sep 10, 2024
@cpcloud cpcloud added refactor Issues or PRs related to refactoring the codebase ux User experience related issues labels Sep 10, 2024
@jcrist jcrist merged commit 62c63d2 into ibis-project:main Sep 10, 2024
104 checks passed
@jcrist jcrist deleted the depr-magic-getitem branch September 10, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Issues or PRs related to refactoring the codebase ux User experience related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

depr: deprecate select & filter behavior of Table.__getitem__
2 participants