pub fn neq_dyn(left: &dyn Array, right: &dyn Array) -> Result<BooleanArray>
Expand description

Perform left != right operation on two (dynamic) Arrays.

Only when two arrays are of the same type the comparison will happen otherwise it will err with a casting error.

Example

use arrow::array::{BinaryArray, BooleanArray};
use arrow::compute::neq_dyn;
let values1: Vec<Option<&[u8]>> = vec![Some(&[0xfc, 0xa9]), None, Some(&[0x36])];
let values2: Vec<Option<&[u8]>> = vec![Some(&[0xfc, 0xa9]), None, Some(&[0x36, 0x00])];
let array1 = BinaryArray::from(values1);
let array2 = BinaryArray::from(values2);
let result = neq_dyn(&array1, &array2).unwrap();
assert_eq!(BooleanArray::from(vec![Some(false), None, Some(true)]), result);