From f5734c3310f6861820cc7132d8d2d500709bb51e Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Sun, 28 Jan 2024 14:48:16 -0800 Subject: [PATCH] Fix the clippy error of use of deprecated method --- 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 94650c0a62269..6f3f2aa99b277 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);