File tree Expand file tree Collapse file tree
vortex-test/compat-gen/src/fixtures/arrays/synthetic/arrays Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,22 +37,15 @@ impl FlatLayoutFixture for ChunkedFixture {
3737 let chunks = chunk_sizes
3838 . iter ( )
3939 . map ( |& size| {
40- let ids: Vec < u32 > = ( offset..offset + size) . collect ( ) ;
40+ let ids: PrimitiveArray = ( offset..offset + size) . collect ( ) ;
4141 let nullable_vals = PrimitiveArray :: from_option_iter (
4242 ( offset..offset + size)
4343 . map ( |i| if i % 7 == 0 { None } else { Some ( i as i64 * 3 ) } ) ,
4444 ) ;
4545 offset += size;
4646 Ok ( StructArray :: try_new (
4747 FieldNames :: from ( [ "id" , "nullable_val" ] ) ,
48- vec ! [
49- PrimitiveArray :: new(
50- vortex_buffer:: Buffer :: from( ids) ,
51- Validity :: NonNullable ,
52- )
53- . into_array( ) ,
54- nullable_vals. into_array( ) ,
55- ] ,
48+ vec ! [ ids. into_array( ) , nullable_vals. into_array( ) ] ,
5649 size as usize ,
5750 Validity :: NonNullable ,
5851 ) ?
You can’t perform that action at this time.
0 commit comments