a10y commented on code in PR #8645:
URL: https://github.com/apache/arrow-rs/pull/8645#discussion_r2456358774
##########
arrow-select/src/concat.rs:
##########
@@ -885,6 +948,49 @@ mod tests {
assert_eq!(array_result.as_ref(), &array_expected as &dyn Array);
}
+ #[test]
+ fn test_concat_list_view_arrays() {
+ let list1 = vec![
+ (Some(vec![Some(-1), None])),
+ None,
+ Some(vec![Some(10), Some(20)]),
+ ];
+ let mut list1_array = ListViewBuilder::new(Int64Builder::new());
+ for v in list1.iter() {
+ list1_array.append_option(v.clone());
+ }
+ let list1_array = list1_array.finish();
+
+ let list2 = vec![
+ None,
+ Some(vec![Some(100), None]),
+ Some(vec![Some(102), Some(103)]),
+ ];
+ let mut list2_array = ListViewBuilder::new(Int64Builder::new());
+ for v in list2.iter() {
+ list2_array.append_option(v.clone());
+ }
+ let list2_array = list2_array.finish();
+
+ let list3 = vec![Some(vec![Some(1000), Some(1001)])];
+ let mut list3_array = ListViewBuilder::new(Int64Builder::new());
+ for v in list3.iter() {
+ list3_array.append_option(v.clone());
+ }
+ let list3_array = list3_array.finish();
+
+ let array_result = concat(&[&list1_array, &list2_array,
&list3_array]).unwrap();
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]