Module arrow::compute::kernels::comparison
source · Expand description
Comparison kernels for Array
s.
Functions
Perform given operation on two
DictionaryArray
s which value type is
primitive type. Returns an error if the two arrays have different value
typePerform the given operation on two
DictionaryArray
s which value type is
DataType::Binary
or DataType::LargeBinary
.Perform the given operation on two
DictionaryArray
s which value type is
DataType::Boolean
.Perform the given operation on two
DictionaryArray
s which value type is
DataType::Utf8
or DataType::LargeUtf8
.Checks if a
GenericListArray
contains a value in the PrimitiveArray
Checks if a
GenericListArray
contains a value in the GenericStringArray
Perform
left == right
operation on two PrimitiveArray
s.Perform
left == right
operation on BooleanArray
Perform
left == right
operation on BooleanArray
and a scalarPerform
left == right
operation on an array and a numeric scalar
value. Supports BinaryArray and LargeBinaryArrayPerform
left == right
operation on an array and a numeric scalar
value.Perform
left == right
operation on an array and a numeric scalar
value. Supports PrimitiveArrays, and DictionaryArrays that have primitive values.Perform
left == right
operation on an array and a numeric scalar
value. Supports StringArrays, and DictionaryArrays that have string valuesPerform
left == right
operation on a PrimitiveArray
and a scalar value.Perform
left > right
operation on two PrimitiveArray
s. Non-null values are greater than null
values.Perform
left > right
operation on BooleanArray
Perform
left > right
operation on BooleanArray
and a scalarPerform
left > right
operation on an array and a numeric scalar
value. Supports BinaryArray and LargeBinaryArrayPerform
left > right
operation on an array and a numeric scalar
value. Supports BooleanArrays.Perform
left > right
operation on an array and a numeric scalar
value. Supports PrimitiveArrays, and DictionaryArrays that have primitive values.Perform
left > right
operation on an array and a numeric scalar
value. Supports StringArrays, and DictionaryArrays that have string valuesPerform
left >= right
operation on two PrimitiveArray
s. Non-null values are greater than null
values.Perform
left >= right
operation on BooleanArray
Perform
left >= right
operation on BooleanArray
and a scalarPerform
left >= right
operation on an array and a numeric scalar
value. Supports BinaryArray and LargeBinaryArrayPerform
left >= right
operation on an array and a numeric scalar
value. Supports BooleanArrays.Perform
left >= right
operation on an array and a numeric scalar
value. Supports PrimitiveArrays, and DictionaryArrays that have primitive values.Perform
left >= right
operation on an array and a numeric scalar
value. Supports StringArrays, and DictionaryArrays that have string valuesPerform
left >= right
operation on a PrimitiveArray
and a scalar value.
Non-null values are greater than null values.Perform
left > right
operation on a PrimitiveArray
and a scalar value.
Non-null values are greater than null values.Perform SQL
left ILIKE right
operation on on DictionaryArray
with values
StringArray
/LargeStringArray
.Perform SQL
left ILIKE right
operation on StringArray
/
LargeStringArray
, or DictionaryArray
with values
StringArray
/LargeStringArray
and a scalar.Perform SQL
left LIKE right
operation on StringArray
/
LargeStringArray
, or DictionaryArray
with values
StringArray
/LargeStringArray
.Perform SQL
left LIKE right
operation on StringArray
/
LargeStringArray
, or DictionaryArray
with values
StringArray
/LargeStringArray
and a scalar.Perform
left < right
operation on two PrimitiveArray
s. Null values are less than non-null
values.Perform
left < right
operation on BooleanArray
Perform
left < right
operation on BooleanArray
and a scalarPerform
left < right
operation on an array and a numeric scalar
value. Supports BinaryArray and LargeBinaryArrayPerform
left < right
operation on an array and a numeric scalar
value. Supports BooleanArrays.Perform
left < right
operation on an array and a numeric scalar
value. Supports PrimitiveArrays, and DictionaryArrays that have primitive values.Perform
left < right
operation on an array and a numeric scalar
value. Supports StringArrays, and DictionaryArrays that have string valuesPerform
left <= right
operation on two PrimitiveArray
s. Null values are less than non-null
values.Perform
left <= right
operation on BooleanArray
Perform
left <= right
operation on BooleanArray
and a scalarPerform
left <= right
operation on an array and a numeric scalar
value. Supports BinaryArray and LargeBinaryArrayPerform
left <= right
operation on an array and a numeric scalar
value. Supports BooleanArrays.Perform
left <= right
operation on an array and a numeric scalar
value. Supports PrimitiveArrays, and DictionaryArrays that have primitive values.Perform
left <= right
operation on an array and a numeric scalar
value. Supports StringArrays, and DictionaryArrays that have string valuesPerform
left <= right
operation on a PrimitiveArray
and a scalar value.
Null values are less than non-null values.Perform
left < right
operation on a PrimitiveArray
and a scalar value.
Null values are less than non-null values.Perform
left != right
operation on two PrimitiveArray
s.Perform
left != right
operation on BooleanArray
Perform
left != right
operation on BooleanArray
and a scalarPerform
left != right
operation on an array and a numeric scalar
value. Supports BinaryArray and LargeBinaryArrayPerform
left != right
operation on an array and a numeric scalar
value. Supports BooleanArrays.Perform
left != right
operation on an array and a numeric scalar
value. Supports PrimitiveArrays, and DictionaryArrays that have primitive values.Perform
left != right
operation on an array and a numeric scalar
value. Supports StringArrays, and DictionaryArrays that have string valuesPerform
left != right
operation on a PrimitiveArray
and a scalar value.Perform SQL
left NOT ILIKE right
operation on on DictionaryArray
with values
StringArray
/LargeStringArray
.Perform SQL
left NOT ILIKE right
operation on StringArray
/
LargeStringArray
, or DictionaryArray
with values
StringArray
/LargeStringArray
and a scalar.Perform SQL
left NOT LIKE right
operation on on DictionaryArray
with values
StringArray
/LargeStringArray
.Perform SQL
left NOT LIKE right
operation on StringArray
/
LargeStringArray
, or DictionaryArray
with values
StringArray
/LargeStringArray
and a scalar.Evaluate
op(left, right)
for PrimitiveArray
s using a specified
comparison function.Evaluate
op(left, right)
for PrimitiveArray
and scalar using
a specified comparison function.Perform SQL
array ~ regex_array
operation on StringArray
/ LargeStringArray
.
If regex_array
element has an empty value, the corresponding result value is always true.Applies an unary and infallible comparison function to a primitive array.