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 the clippy error of use of deprecated method #9034

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

viirya
Copy link
Member

@viirya viirya commented Jan 28, 2024

Which issue does this PR close?

Closes #.

Rationale for this change

Currently the CI failed (https://github.com/apache/arrow-datafusion/actions/runs/7688676073/job/20950251248?pr=9031) because:

error: use of deprecated method `indexmap::IndexSet::<T, S>::remove`: `remove` disrupts the set order -- use `swap_remove` or `shift_remove` for explicit behavior.
   --> datafusion/physical-expr/src/equivalence/properties.rs:733:32
    |
733 |                 search_indices.remove(idx);
    |                                ^^^^^^
    |
    = note: `-D deprecated` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(deprecated)]`

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the physical-expr Physical Expressions label Jan 28, 2024
@viirya
Copy link
Member Author

viirya commented Jan 28, 2024

cc @alamb

Copy link
Contributor

@mustafasrepo mustafasrepo left a comment

Choose a reason for hiding this comment

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

LGTM!

@mustafasrepo mustafasrepo merged commit 1097dc0 into apache:main Jan 29, 2024
23 checks passed
@viirya
Copy link
Member Author

viirya commented Jan 29, 2024

Thanks @mustafasrepo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants