Skip to content

Commit

Permalink
Make 'array_filter' handle REE filters
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrv committed Jun 2, 2023
1 parent 70120a9 commit 04c347f
Show file tree
Hide file tree
Showing 6 changed files with 543 additions and 302 deletions.
7 changes: 3 additions & 4 deletions cpp/src/arrow/compute/kernels/vector_selection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ void RegisterVectorSelection(FunctionRegistry* registry) {
VectorKernel filter_base;
filter_base.init = FilterState::Init;
RegisterSelectionFunction("array_filter", array_filter_doc, filter_base,
/*selection_type=*/boolean(), filter_kernels,
GetDefaultFilterOptions(), registry);
std::move(filter_kernels), GetDefaultFilterOptions(),
registry);

DCHECK_OK(registry->AddFunction(MakeFilterMetaFunction()));

Expand All @@ -345,8 +345,7 @@ void RegisterVectorSelection(FunctionRegistry* registry) {
take_base.init = TakeState::Init;
take_base.can_execute_chunkwise = false;
RegisterSelectionFunction("array_take", array_take_doc, take_base,
/*selection_type=*/match::Integer(), take_kernels,
GetDefaultTakeOptions(), registry);
std::move(take_kernels), GetDefaultTakeOptions(), registry);

DCHECK_OK(registry->AddFunction(MakeTakeMetaFunction()));

Expand Down
Loading

0 comments on commit 04c347f

Please sign in to comment.