Skip to content
Closed
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion cpp/src/arrow/io/memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ BufferOutputStream::BufferOutputStream(const std::shared_ptr<ResizableBuffer>& b
Result<std::shared_ptr<BufferOutputStream>> BufferOutputStream::Create(
int64_t initial_capacity, MemoryPool* pool) {
// ctor is private, so cannot use make_shared
DCHECK_NE(pool, nullptr);
auto ptr = std::shared_ptr<BufferOutputStream>(new BufferOutputStream);
RETURN_NOT_OK(ptr->Reset(initial_capacity, pool));
return ptr;
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/jni/orc/jni_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ Java_org_apache_arrow_adapter_orc_OrcStripeReaderJniWrapper_getSchema(JNIEnv* en

auto schema = stripe_reader->schema();

auto maybe_buffer = arrow::ipc::SerializeSchema(*schema, nullptr);
auto maybe_buffer = arrow::ipc::SerializeSchema(*schema, arrow::default_memory_pool());
if (!maybe_buffer.ok()) {
return nullptr;
}
Expand Down