Skip to content

Commit

Permalink
fixed status values
Browse files Browse the repository at this point in the history
  • Loading branch information
psuman65 committed Nov 12, 2019
1 parent 7dc99a3 commit ebab59f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/compute/kernels/match.cc
Expand Up @@ -135,7 +135,7 @@ class MatchKernel : public MatchKernelImpl {
const ArrayData& left_data = *left.array();

indices_builder_.Reset();
indices_builder_.Reserve(left_data.length);
RETURN_NOT_OK(indices_builder_.Reserve(left_data.length));

RETURN_NOT_OK(ArrayDataVisitor<Type>::Visit(left_data, this));

Expand Down Expand Up @@ -187,7 +187,7 @@ class NullMatchKernel : public MatchKernelImpl {
const ArrayData& left_data = *left.array();
left_null_count = left_data.GetNullCount();
indices_builder_.Reset();
indices_builder_.Reserve(left_data.length);
RETURN_NOT_OK(indices_builder_.Reserve(left_data.length));

if (left_null_count != 0 && right_null_count == 0) {
for (int64_t i = 0; i < left_data.length; ++i) {
Expand Down

0 comments on commit ebab59f

Please sign in to comment.