Skip to content

Commit 3ea259e

Browse files
authored
Fix semantic conflict with array slots (#7243)
Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent ba827a4 commit 3ea259e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

vortex-array/src/arrays/masked/execute.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use std::ops::BitAnd;
88
use vortex_error::VortexResult;
99
use vortex_mask::Mask;
1010

11-
use crate::ArrayVisitor;
1211
use crate::Canonical;
1312
use crate::IntoArray;
1413
use crate::arrays::BoolArray;
@@ -224,9 +223,7 @@ fn mask_validity_variant(
224223
// Child has an array-backed validity stored as its first child.
225224
// Combine with the mask and replace that child via with_children.
226225
let combined = combine_validity(&child_validity, mask, len, ctx)?;
227-
let mut children = child.children();
228-
children[0] = combined.to_array(len);
229-
let new_child = child.with_children(children)?;
226+
let new_child = child.with_slot(0, combined.to_array(len))?;
230227
Ok(VariantArray::new(new_child))
231228
}
232229
}

0 commit comments

Comments
 (0)