diff --git a/vortex-array/src/arrays/filter/vtable.rs b/vortex-array/src/arrays/filter/vtable.rs index 516a8dbe1ad..78ef1de9a2b 100644 --- a/vortex-array/src/arrays/filter/vtable.rs +++ b/vortex-array/src/arrays/filter/vtable.rs @@ -2,6 +2,7 @@ // SPDX-FileCopyrightText: Copyright the Vortex contributors use std::hash::Hasher; +use std::sync::Arc; use vortex_error::VortexExpect; use vortex_error::VortexResult; @@ -146,7 +147,7 @@ impl VTable for Filter { return Ok(ExecutionResult::done(canonical)); } let mask_values = match &array.mask { - Mask::Values(v) => v.clone(), + Mask::Values(v) => Arc::clone(v), _ => unreachable!("`execute_filter_fast_paths` handles AllTrue and AllFalse"), };