Skip to content

Commit

Permalink
Call MakeArrayOfNull with configured memory pool
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Feb 13, 2025
1 parent cf4534d commit 4311938
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/src/arrow/compute/kernels/scalar_cast_nested.cc
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ struct CastStruct {
const auto& out_field_type = out_field->type();
if (in_field_index == kFillNullSentinel) {
ARROW_ASSIGN_OR_RAISE(
auto nulls, MakeArrayOfNull(out_field_type->GetSharedPtr(), batch.length));
auto nulls, MakeArrayOfNull(out_field_type->GetSharedPtr(), batch.length,
ctx->memory_pool()));
out_array->child_data.push_back(nulls->data());
} else {
const auto& in_field = in_type.field(in_field_index);
Expand Down

0 comments on commit 4311938

Please sign in to comment.