apply_cmp_str_dict

Function apply_cmp_str_dict 

Source
pub fn apply_cmp_str_dict<T: Integer, U: Integer>(
    lhs: StringAVT<'_, T>,
    rhs: CategoricalAVT<'_, U>,
    op: ComparisonOperator,
) -> Result<BooleanArray<()>, KernelError>
Expand description

Applies comparison operations between string array elements and categorical dictionary values.

Performs element-wise comparison where left operands are strings and right operands are resolved from a categorical array’s dictionary.

§Parameters

  • lhs: String array view tuple (StringArray, offset, length)
  • rhs: Categorical array view tuple (CategoricalArray, offset, length)
  • op: Comparison operator (Eq, Ne, Lt, Le, Gt, Ge, In, NotIn)

§Type Parameters

  • T: Integer type for string array offsets
  • U: Integer type for categorical array indices

§Returns

Result<BooleanArray<()>, KernelError> where true elements satisfy the comparison.

§Performance

Dictionary lookups amortised across categorical comparisons with caching opportunities.