Neal Richardson created ARROW-6773: -------------------------------------- Summary: [C++] Filter kernel returns invalid data when filtering with an Array slice Key: ARROW-6773 URL: https://issues.apache.org/jira/browse/ARROW-6773 Project: Apache Arrow Issue Type: Bug Components: C++ Reporter: Neal Richardson Assignee: Ben Kietzman Fix For: 1.0.0
See ARROW-3808. This failing test reproduces the issue: {code:java} --- a/cpp/src/arrow/compute/kernels/filter_test.cc +++ b/cpp/src/arrow/compute/kernels/filter_test.cc @@ -151,6 +151,12 @@ TYPED_TEST(TestFilterKernelWithNumeric, FilterNumeric) { this->AssertFilter("[7, 8, 9]", "[null, 1, 0]", "[null, 8]"); this->AssertFilter("[7, 8, 9]", "[1, null, 1]", "[7, null, 9]"); + this->AssertFilterArrays( + ArrayFromJSON(this->type_singleton(), "[7, 8, 9]"), + ArrayFromJSON(boolean(), "[0, 1, 1, 1, 0, 1]")->Slice(3, 3), + ArrayFromJSON(this->type_singleton(), "[7, 9]") + ); + {code} {code:java} arrow/cpp/src/arrow/testing/gtest_util.cc:82: Failure Failed @@ -2, +2 @@ +0 [ FAILED ] TestFilterKernelWithNumeric/9.FilterNumeric, where TypeParam = arrow::DoubleType (0 ms) {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)