File tree Expand file tree Collapse file tree
vortex-array/src/arrays/fixed_size_list/tests
vortex-layout/src/layouts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -746,7 +746,7 @@ jobs:
746746 tool : cargo-codspeed
747747 - name : Build benchmarks
748748 env :
749- RUSTFLAGS : " -C target-feature=+avx2 -C debug-assertions=yes "
749+ RUSTFLAGS : " -C target-feature=+avx2"
750750 run : cargo codspeed build ${{ matrix.features }} $(printf -- '-p %s ' ${{ matrix.packages }}) --profile bench
751751 - name : Run benchmarks
752752 uses : CodSpeedHQ/action@d872884a306dd4853acf0f584f4b706cf0cc72a2
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ use super::common::create_nullable_fsl;
1111use super :: common:: create_single_element_fsl;
1212use crate :: ArrayRef ;
1313use crate :: IntoArray ;
14- use crate :: ToCanonical ;
1514use crate :: arrays:: FixedSizeListArray ;
1615use crate :: arrays:: PrimitiveArray ;
1716use crate :: assert_arrays_eq;
@@ -160,8 +159,8 @@ fn test_element_index_overflow(
160159 #[ case] indices : ArrayRef ,
161160 #[ case] expected : FixedSizeListArray ,
162161) {
163- let result = fsl. take ( indices) . unwrap ( ) . to_fixed_size_list ( ) ;
164- assert_arrays_eq ! ( expected , result ) ;
162+ let result = fsl. take ( indices) . unwrap ( ) ;
163+ assert_arrays_eq ! ( result , expected ) ;
165164}
166165
167166// Parameterized test for nullable array scenarios that are specific to FSL's implementation.
Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ impl LayoutStrategy for BufferedStrategy {
7171 if stream. as_mut( ) . peek( ) . await . is_none( ) {
7272 let mut sequence_ptr = sequence_id. descend( ) ;
7373 while let Some ( chunk) = chunks. pop_front( ) {
74- let chunk_size = chunk. nbytes( ) ;
75- nbytes -= chunk_size;
76- buffered_bytes_counter. fetch_sub( chunk_size, Ordering :: Relaxed ) ;
74+ buffered_bytes_counter. fetch_sub( chunk. nbytes( ) , Ordering :: Relaxed ) ;
7775 yield ( sequence_ptr. advance( ) , chunk)
7876 }
7977 break ;
You can’t perform that action at this time.
0 commit comments