From 960cb21301b48672298ce409cc039d4262bed25d Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Tue, 15 Oct 2024 12:19:42 +0200 Subject: [PATCH] Use memory pool from options --- cpp/src/arrow/ipc/reader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/arrow/ipc/reader.cc b/cpp/src/arrow/ipc/reader.cc index e4c9352e44ccf..a9f2f9769c958 100644 --- a/cpp/src/arrow/ipc/reader.cc +++ b/cpp/src/arrow/ipc/reader.cc @@ -640,7 +640,7 @@ Result> LoadRecordBatchSubset( auto batch = RecordBatch::Make(std::move(filtered_schema), metadata->length(), std::move(filtered_columns)); if (context.options.ensure_memory_alignment) { - return util::EnsureAlignment(batch, arrow::util::kValueAlignment, default_memory_pool()); + return util::EnsureAlignment(batch, arrow::util::kValueAlignment, context.options.memory_pool); } return batch; }