pub fn apply_cmp_str<T: Integer>(
lhs: StringAVT<'_, T>,
rhs: StringAVT<'_, T>,
op: ComparisonOperator,
) -> Result<BooleanArray<()>, KernelError>Expand description
Applies comparison operations between corresponding string elements from string arrays.
Performs element-wise string comparison using lexicographic ordering with UTF-8 awareness and efficient null handling.
§Parameters
lhs: Left-hand string array view tuple(StringArray, offset, length)rhs: Right-hand string array view tuple(StringArray, offset, length)op: Comparison operator (Eq, Ne, Lt, Le, Gt, Ge, In, NotIn)
§String Comparison
- Uses Rust’s standard UTF-8 aware lexicographic ordering
- Null strings handled consistently across all operations
- Set operations support string membership testing
§Returns
Result<BooleanArray<()>, KernelError> where true elements satisfy the comparison.
§Performance
- Optimised string comparison avoiding unnecessary allocations
- Efficient null mask processing with bitwise operations
- Dictionary-style operations for set membership testing