Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use options_.memory_pool in AllocateBuffer #198

Open
wants to merge 1 commit into
base: backend_velox_main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cpp/src/arrow/ipc/writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ class RecordBatchSerializer {
std::shared_ptr<Buffer>* out) {
// Convert buffer to uncompressed-length-prefixed compressed buffer
int64_t maximum_length = codec->MaxCompressedLen(buffer.size(), buffer.data());
ARROW_ASSIGN_OR_RAISE(auto result, AllocateBuffer(maximum_length + sizeof(int64_t)));
ARROW_ASSIGN_OR_RAISE(auto result,
AllocateBuffer(maximum_length + sizeof(int64_t), options_.memory_pool));

int64_t actual_length;
ARROW_ASSIGN_OR_RAISE(actual_length,
Expand Down