In [1]: pa.set_memory_pool(pa.logging_memory_pool(pa.default_memory_pool()))
In [2]: pa.array([1, 2, 3])
Segmentation fault (core dumped)
In [1]: pa.array([1, 2, 3], memory_pool=pa.logging_memory_pool(pa.default_memory_pool()))
Allocate: size = 256, alignment = 64
Allocate: size = 64, alignment = 64
Reallocate: old_size = 256, new_size = 64, alignment = 64
Free: size = 64, alignment = 64
Out[1]:
<pyarrow.lib.Int64Array object at 0x7f365b0568c0>
[
1,
2,
3
]