MCPcopy Create free account
hub / github.com/apache/arrow-rs / do_comparison

Function do_comparison

arrow-array/src/array/list_array.rs:1165–1177  ·  view source on GitHub ↗

test scaffold

(
            lhs_data: Vec<Option<Vec<Option<i32>>>>,
            rhs_data: Vec<Option<Vec<Option<i32>>>>,
            should_equal: bool,
        )

Source from the content-addressed store, hash-verified

1163 fn list_array_equality() {
1164 // test scaffold
1165 fn do_comparison(
1166 lhs_data: Vec<Option<Vec<Option<i32>>>>,
1167 rhs_data: Vec<Option<Vec<Option<i32>>>>,
1168 should_equal: bool,
1169 ) {
1170 let lhs = ListArray::from_iter_primitive::<Int32Type, _, _>(lhs_data.clone());
1171 let rhs = ListArray::from_iter_primitive::<Int32Type, _, _>(rhs_data.clone());
1172 assert_eq!(lhs == rhs, should_equal);
1173
1174 let lhs = LargeListArray::from_iter_primitive::<Int32Type, _, _>(lhs_data);
1175 let rhs = LargeListArray::from_iter_primitive::<Int32Type, _, _>(rhs_data);
1176 assert_eq!(lhs == rhs, should_equal);
1177 }
1178
1179 do_comparison(
1180 vec![

Callers 1

list_array_equalityFunction · 0.85

Calls 1

cloneMethod · 0.45

Tested by 1

list_array_equalityFunction · 0.68