Skip to content

Commit 741ded7

Browse files
committed
fix
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
1 parent b6e3d4f commit 741ded7

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

  • vortex-test/compat-gen/src/fixtures/arrays/synthetic/arrays

vortex-test/compat-gen/src/fixtures/arrays/synthetic/arrays/chunked.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff 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
)?

0 commit comments

Comments
 (0)