Skip to content

Commit 4311938

Browse files
committed
Call MakeArrayOfNull with configured memory pool
1 parent cf4534d commit 4311938

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎cpp/src/arrow/compute/kernels/scalar_cast_nested.cc‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ struct CastStruct {
404404
const auto& out_field_type = out_field->type();
405405
if (in_field_index == kFillNullSentinel) {
406406
ARROW_ASSIGN_OR_RAISE(
407-
auto nulls, MakeArrayOfNull(out_field_type->GetSharedPtr(), batch.length));
407+
auto nulls, MakeArrayOfNull(out_field_type->GetSharedPtr(), batch.length,
408+
ctx->memory_pool()));
408409
out_array->child_data.push_back(nulls->data());
409410
} else {
410411
const auto& in_field = in_type.field(in_field_index);

0 commit comments

Comments
 (0)