andishgar commented on code in PR #46229: URL: https://github.com/apache/arrow/pull/46229#discussion_r2208156231
########## cpp/src/arrow/array/array_binary.cc: ########## @@ -105,6 +111,392 @@ BinaryViewArray::BinaryViewArray(std::shared_ptr<DataType> type, int64_t length, ArrayData::Make(std::move(type), length, std::move(buffers), null_count, offset)); } +namespace { + +// TODO Should We move this to bitmap_ops.h and Remove from compute/kernels/util.s +Result<std::shared_ptr<Buffer>> GetOrCopyNullBitmapBuffer(const ArrayData& in_array, + MemoryPool* pool) { Review Comment: Could I do this in a separate pull request? It seems that at least two compute kernels rely on this function ([cpp/src/arrow/compute/kernels/util_internal.h](https://github.com/apache/arrow/blob/b062998fdae7877686cd25b9f4d56db6dbff65d5/cpp/src/arrow/compute/kernels/util_internal.h#L158)). From my search on GitHub, I found that at least two compute kernels depend on it. -- 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