You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/09/22 12:05:27 UTC
[GitHub] [arrow] lidavidm commented on a change in pull request #11115: ARROW-12084: [C++][Compute] Add remainder and quotient compute::Function
lidavidm commented on a change in pull request #11115:
URL: https://github.com/apache/arrow/pull/11115#discussion_r713871305
##########
File path: cpp/src/arrow/compute/kernels/codegen_internal.h
##########
@@ -270,6 +275,24 @@ struct OutputArrayWriter<Type, enable_if_c_number_or_decimal<Type>> {
}
};
+template <typename Type>
+struct OutputArrayWriter<Type, enable_if_struct<Type>> {
Review comment:
Hmm, I'm frankly not sure that any of this works. A Struct array isn't an array of Struct scalars, it's a nested array with one child for each struct field. For instance, there isn't a buffer 1 in a struct array at all, only a validity bitmap. This might still be made to work but it would have a lot of indirections around wrapping/unwrapping scalars. It might be better to specialize DivMod or consider a separate pattern for struct-returning arithmetic functions.
--
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-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org