pepijnve commented on code in PR #10222:
URL: https://github.com/apache/arrow-rs/pull/10222#discussion_r3485599883


##########
arrow-string/src/concat_elements.rs:
##########
@@ -802,9 +869,12 @@ mod tests {
         let left = BinaryViewArray::from_iter(vec![] as Vec<Option<&[u8]>>);
         let right = BinaryViewArray::from_iter(vec![] as Vec<Option<&[u8]>>);
 
-        let output = concat_elements_binary_view_array(&left, &right).unwrap();
+        let output = concat_elements_dyn(&left, &right).unwrap();
         let expected = BinaryViewArray::from_iter(vec![] as 
Vec<Option<&[u8]>>);
-        assert_eq!(output, expected);
+        assert_eq!(
+            output.as_any().downcast_ref::<BinaryViewArray>().unwrap(),
+            &expected
+        );

Review Comment:
   Yes, that's much better. I've cleaned up all the tests that were still using 
more verbose patterns.



-- 
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]

Reply via email to