Skip to content

Commit e0096ca

Browse files
committed
Use valid null List ranges in take test
Signed-off-by: Daniel King <dan@spiraldb.com>
1 parent 8d542fe commit e0096ca

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

  • vortex-array/src/arrays/list/compute

vortex-array/src/arrays/list/compute/take.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -979,15 +979,13 @@ mod test {
979979
}
980980

981981
#[test]
982-
fn null_source_row_ignores_invalid_offset_payload() {
982+
fn null_source_row_uses_valid_empty_output_range() {
983983
let mut ctx = array_session().create_execution_ctx();
984-
let list = unsafe {
985-
ListArray::new_unchecked(
986-
buffer![1i32, 2].into_array(),
987-
buffer![0u32, 2, 999].into_array(),
988-
Validity::from_iter([true, false]),
989-
)
990-
}
984+
let list = ListArray::new(
985+
buffer![1i32, 2, 7, 8].into_array(),
986+
buffer![0u32, 2, 4].into_array(),
987+
Validity::from_iter([true, false]),
988+
)
991989
.into_array();
992990

993991
let idx = buffer![0u32, 1].into_array();

0 commit comments

Comments
 (0)