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

fix(drop): ignore order for DropColumns equality #9677

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

deepyaman
Copy link
Contributor

Description of changes

Since the ordering doesn't matter for DropColumns, a VarTuple[str] is probably the wrong data structure for the columns_to_drop attribute. This is a bug in the implementation of DropColumns—we should either change the type (a frozenset[str] would make more sense), or override the comparison so that .equals treats those as equal.

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, the Ms SQL failures seem unrelated

@cpcloud cpcloud force-pushed the fix/drop/ignore-column-order branch from 6e4d337 to d5a2923 Compare July 24, 2024 10:44
@cpcloud cpcloud enabled auto-merge (squash) July 24, 2024 10:44
@cpcloud cpcloud added bug Incorrect behavior inside of ibis internals Issues or PRs related to ibis's internal APIs labels Jul 24, 2024
@cpcloud cpcloud disabled auto-merge July 24, 2024 10:51
@cpcloud cpcloud merged commit ae1e112 into ibis-project:main Jul 24, 2024
83 of 84 checks passed
@deepyaman deepyaman deleted the fix/drop/ignore-column-order branch July 24, 2024 13:57
@cpcloud cpcloud added this to the 9.3 milestone Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis internals Issues or PRs related to ibis's internal APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants