pub fn gt_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::BooleanArray;
use arrow::compute::gt_dyn;
let array1 = BooleanArray::from(vec![Some(true), Some(false), None]);
let array2 = BooleanArray::from(vec![Some(false), Some(true), None]);
let result = gt_dyn(&array1, &array2).unwrap();
assert_eq!(BooleanArray::from(vec![Some(true), Some(false), None]), result);