Skip to content

Commit cee7469

Browse files
authored
Fix: incorrect fuzz slice for FixedSizeList (#5155)
Oops Signed-off-by: Connor Tsui <[email protected]>
1 parent c0598a6 commit cee7469

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fuzz/src/array/slice.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ pub fn slice_canonical_array(
8181
let list_size = fsl_array.list_size() as usize;
8282
let elements =
8383
slice_canonical_array(fsl_array.elements(), start * list_size, stop * list_size)?;
84+
let new_len = stop - start;
8485

85-
FixedSizeListArray::try_new(elements, fsl_array.list_size(), validity, array.len())
86+
FixedSizeListArray::try_new(elements, fsl_array.list_size(), validity, new_len)
8687
.map(|a| a.into_array())
8788
}
8889
DType::Decimal(decimal_dtype, _) => {

0 commit comments

Comments
 (0)