Awesome06 commented on PR #55425: URL: https://github.com/apache/arrow/pull/55425#issuecomment-7129524736
Fair point on the maintenance overhead @pitrou. If the ~250 lines feel too heavy for equality alone, I can attempt to cut this diff down to fewer lines. Most of the boilerplate comes from separate `ArrayScalar` vs `ScalarArray` structs. Since equality is commutative, we could eliminate the mirrored loops and let a single compact loop delegate directly to `util::EqualBinaryViewString`. Regarding broader scope: we had to hand-roll loops here because `ArrayIterator<BinaryViewType>` in `codegen_internal.h` eagerly dereferences variadic buffers into `std::string_view` before any operator runs. If preferred, we could solve this at the applicator/iterator level instead, which would automatically give prefix early-rejection to other kernels (`is_in`, `starts_with`, `ArrayEquals`) without needing custom loops in each kernel file. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
