Skip to content

Commit

Permalink
make compilers happy
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Dec 23, 2020
1 parent 32cd9a4 commit 8f6e26e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/src/arrow/compute/kernels/scalar_string.cc
Expand Up @@ -1320,7 +1320,6 @@ struct Join {
*out = scalar_right_type;
} // do we want to support scalar[list[str]] with array[str] ?
} else {
const ArrayData& input = *batch[0].array();
const ListArrayType list(batch[0].array());
ArrayData* output = out->mutable_array();

Expand Down Expand Up @@ -1367,7 +1366,7 @@ struct Join {
KERNEL_RETURN_IF_ERROR(ctx, builder.AppendNull());
} else {
if (strings->length() > 0) {
builder.Append(strings->GetView(0));
KERNEL_RETURN_IF_ERROR(ctx, builder.Append(strings->GetView(0)));
for (int64_t j = 1; j < strings->length(); j++) {
KERNEL_RETURN_IF_ERROR(ctx, builder.AppendCurrent(separator));
KERNEL_RETURN_IF_ERROR(ctx, builder.AppendCurrent(strings->GetView(j)));
Expand Down

0 comments on commit 8f6e26e

Please sign in to comment.