@@ -473,6 +473,7 @@ mod tests {
473473 use std:: sync:: LazyLock ;
474474
475475 use rstest:: rstest;
476+ use vortex_array:: VectorExecutor ;
476477 use vortex_array:: arrays:: PrimitiveArray ;
477478 use vortex_array:: vtable:: ValidityHelper ;
478479 use vortex_dtype:: PTypeDowncast ;
@@ -497,7 +498,7 @@ mod tests {
497498 let values = PrimitiveArray :: from_iter ( ( 0 ..size) . map ( |i| i as f32 ) ) ;
498499 let encoded = alp_encode ( & values, None ) . unwrap ( ) ;
499500
500- let result_vector = encoded. to_array ( ) . execute ( & SESSION ) . unwrap ( ) ;
501+ let result_vector = encoded. to_array ( ) . execute_vector ( & SESSION ) . unwrap ( ) ;
501502 // Compare against the traditional array-based decompress path
502503 let expected = decompress_into_array ( encoded) ;
503504
@@ -521,7 +522,7 @@ mod tests {
521522 let values = PrimitiveArray :: from_iter ( ( 0 ..size) . map ( |i| i as f64 ) ) ;
522523 let encoded = alp_encode ( & values, None ) . unwrap ( ) ;
523524
524- let result_vector = encoded. to_array ( ) . execute ( & SESSION ) . unwrap ( ) ;
525+ let result_vector = encoded. to_array ( ) . execute_vector ( & SESSION ) . unwrap ( ) ;
525526 // Compare against the traditional array-based decompress path
526527 let expected = decompress_into_array ( encoded) ;
527528
@@ -551,7 +552,7 @@ mod tests {
551552 let encoded = alp_encode ( & array, None ) . unwrap ( ) ;
552553 assert ! ( encoded. patches( ) . unwrap( ) . array_len( ) > 0 ) ;
553554
554- let result_vector = encoded. to_array ( ) . execute ( & SESSION ) . unwrap ( ) ;
555+ let result_vector = encoded. to_array ( ) . execute_vector ( & SESSION ) . unwrap ( ) ;
555556 // Compare against the traditional array-based decompress path
556557 let expected = decompress_into_array ( encoded) ;
557558
@@ -579,7 +580,7 @@ mod tests {
579580 let array = PrimitiveArray :: from_option_iter ( values) ;
580581 let encoded = alp_encode ( & array, None ) . unwrap ( ) ;
581582
582- let result_vector = encoded. to_array ( ) . execute ( & SESSION ) . unwrap ( ) ;
583+ let result_vector = encoded. to_array ( ) . execute_vector ( & SESSION ) . unwrap ( ) ;
583584 // Compare against the traditional array-based decompress path
584585 let expected = decompress_into_array ( encoded) ;
585586
@@ -618,7 +619,7 @@ mod tests {
618619 let encoded = alp_encode ( & array, None ) . unwrap ( ) ;
619620 assert ! ( encoded. patches( ) . unwrap( ) . array_len( ) > 0 ) ;
620621
621- let result_vector = encoded. to_array ( ) . execute ( & SESSION ) . unwrap ( ) ;
622+ let result_vector = encoded. to_array ( ) . execute_vector ( & SESSION ) . unwrap ( ) ;
622623 // Compare against the traditional array-based decompress path
623624 let expected = decompress_into_array ( encoded) ;
624625
@@ -660,7 +661,7 @@ mod tests {
660661 let slice_len = slice_end - slice_start;
661662 let sliced_encoded = encoded. slice ( slice_start..slice_end) ;
662663
663- let result_vector = sliced_encoded. execute ( & SESSION ) . unwrap ( ) ;
664+ let result_vector = sliced_encoded. execute_vector_optimized ( & SESSION ) . unwrap ( ) ;
664665 let result_primitive = result_vector. into_primitive ( ) . into_f64 ( ) ;
665666
666667 for idx in 0 ..slice_len {
0 commit comments