pitrou commented on code in PR #45272: URL: https://github.com/apache/arrow/pull/45272#discussion_r2213555919
########## cpp/src/arrow/compute/kernels/scalar_compare.cc: ########## @@ -54,6 +55,39 @@ struct NotEqual { } }; +struct ListEqual { + template <typename T, typename Arg0, typename Arg1> + static T Call(KernelContext*, const Arg0& left, const Arg1& right, Status*) { + static_assert(std::is_same<T, bool>::value && std::is_same<Arg0, Arg1>::value, ""); + + if (left.length != right.length) { + return false; + } else { + RangeDataEqualsImpl range_comparer{ + EqualOptions::Defaults(), false, left, right, 0, 0, 1, Review Comment: The parent offset affects reading into the list *offsets* buffer, but it should not be added to the offsets into the child array (otherwise the parent offset would be counted twice). -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org