This is an automated email from the ASF dual-hosted git repository.

akurmustafa pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 1097dc0345 Fix the clippy error of use of deprecated method (#9034)
1097dc0345 is described below

commit 1097dc0345079e81ba217ef23fd408a5c13c3d6c
Author: Liang-Chi Hsieh <[email protected]>
AuthorDate: Mon Jan 29 00:55:16 2024 -0800

    Fix the clippy error of use of deprecated method (#9034)
---
 datafusion/physical-expr/src/equivalence/properties.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/datafusion/physical-expr/src/equivalence/properties.rs 
b/datafusion/physical-expr/src/equivalence/properties.rs
index 94650c0a62..6f3f2aa99b 100644
--- a/datafusion/physical-expr/src/equivalence/properties.rs
+++ b/datafusion/physical-expr/src/equivalence/properties.rs
@@ -730,7 +730,7 @@ impl EquivalenceProperties {
             for (PhysicalSortExpr { expr, .. }, idx) in &ordered_exprs {
                 eq_properties =
                     eq_properties.add_constants(std::iter::once(expr.clone()));
-                search_indices.remove(idx);
+                search_indices.swap_remove(idx);
             }
             // Add new ordered section to the state.
             result.extend(ordered_exprs);

Reply via email to