Simon Watts created ARROW-8862: ---------------------------------- Summary: NumericBuilder does not use MemoryPool passed to CTOR Key: ARROW-8862 URL: https://issues.apache.org/jira/browse/ARROW-8862 Project: Apache Arrow Issue Type: Bug Components: C++ Affects Versions: 0.15.0 Reporter: Simon Watts
{{NumericBuilder}} uses the {{pool}} ({{MemoryPool*}}) parameter to initialise the {{ArrayBuilder}} base class, but does not use it to initialise its own internal builder, {{data_builder_}} ({{TypedBufferBuilder}}). For comparison {{ArrayBuilder}} uses the {{pool}} to initialise its own {{null_bitmap_builder_}} member (also a {{TypedBufferBuilder}}). Found in version 0.15.0, present in current head. This effect was observed when trying to switch to a custom {{MemoryPool}} for performance reasons. A hook was used to detect any use of the {{MemoryPool}} proved by {{default_memory_pool()}}. -- This message was sent by Atlassian Jira (v8.3.4#803005)