Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
avantgardnerio committed Sep 29, 2023
1 parent e81ef84 commit 9e3c7e2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions arrow-select/src/take.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2039,12 +2039,19 @@ mod tests {
Some((Some(true), Some(31))),
None,
]);
let strings = StringArray::from(vec![Some("a"), None, Some("c"), None, Some("d")]);
let strings =
StringArray::from(vec![Some("a"), None, Some("c"), None, Some("d")]);
let type_ids = Buffer::from_slice_ref(vec![1i8; 5]);

let children: Vec<(Field, Arc<dyn Array>)> = vec![
(Field::new("f1", structs.data_type().clone(), true), Arc::new(structs)),
(Field::new("f2", strings.data_type().clone(), true), Arc::new(strings)),
(
Field::new("f1", structs.data_type().clone(), true),
Arc::new(structs),
),
(
Field::new("f2", strings.data_type().clone(), true),
Arc::new(strings),
),
];
let array = UnionArray::try_new(&[0, 1], type_ids, None, children).unwrap();

Expand Down

0 comments on commit 9e3c7e2

Please sign in to comment.