You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "felipecrv (via GitHub)" <gi...@apache.org> on 2024/05/03 01:51:26 UTC
Re: [PR] GH-41301: [C++] Extract the kernel loops used for PrimitiveTakeExec and generalize to any fixed-width type [arrow]
felipecrv commented on code in PR #41373:
URL: https://github.com/apache/arrow/pull/41373#discussion_r1588599102
##########
cpp/src/arrow/compute/kernels/vector_selection_take_internal.cc:
##########
@@ -884,13 +756,11 @@ void PopulateTakeKernels(std::vector<SelectionKernelData>* out) {
auto take_indices = match::Integer();
*out = {
- {InputType(match::Primitive()), take_indices, PrimitiveTakeExec},
+ {InputType(match::Primitive()), take_indices, FixedWidthTakeExec},
{InputType(match::BinaryLike()), take_indices, VarBinaryTakeExec},
{InputType(match::LargeBinaryLike()), take_indices, LargeVarBinaryTakeExec},
- {InputType(Type::FIXED_SIZE_BINARY), take_indices, FSBTakeExec},
+ {InputType(match::FixedSizeBinaryLike()), take_indices, FixedWidthTakeExec},
{InputType(null()), take_indices, NullTakeExec},
- {InputType(Type::DECIMAL128), take_indices, PrimitiveTakeExec},
- {InputType(Type::DECIMAL256), take_indices, PrimitiveTakeExec},
Review Comment:
"FixedSizeBinaryLike" includes FSB and the Decimal types. Not to be confused with "fixed-WIDTH like" which includes special fixed-size lists (see `util/fixed_width_internal.h`). I wanted to name the latter "fixed-width modulo nesting" to be more upfront about the nesting aspect, but that turned out too obtuse and verbose.
--
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