Skip to content

Commit 8792c8b

Browse files
committed
Hardcoding max root allocation bytes and max child allocator bytes in ArrowBufferPool
1 parent e389179 commit 8792c8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/parquet-data-format/src/main/java/com/parquet/parquetdataformat/memory/ArrowBufferPool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ public class ArrowBufferPool implements Closeable {
2525
private final long maxChildAllocation;
2626

2727
public ArrowBufferPool(Settings settings) {
28-
long maxAllocationInBytes = getMaxAllocationInBytes(settings);
28+
long maxAllocationInBytes = 10L * 1024 * 1024 * 1024;
2929

3030
logger.info("Max native memory allocation for ArrowBufferPool: {} bytes", maxAllocationInBytes);
3131
this.rootAllocator = new RootAllocator(maxAllocationInBytes);
32-
this.maxChildAllocation = maxAllocationInBytes;
32+
this.maxChildAllocation = 1024 * 1024 * 1024;
3333
}
3434

3535
/**

0 commit comments

Comments
 (0)