Skip to content

Commit db7a9f4

Browse files
committed
finalize debugging
1 parent 470e2d7 commit db7a9f4

File tree

3 files changed

+42
-3
lines changed

3 files changed

+42
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
Args = --add-opens=java.base/java.nio=ALL-UNNAMED \
2-
--initialize-at-build-time=org.apache.arrow.memory.DefaultAllocationManagerOption
3-
4-
# --initialize-at-run-time=org.apache.arrow.memory.netty.DefaultAllocationManagerFactory
2+
3+
#--initialize-at-build-time=org.apache.arrow.memory.BaseAllocator \
4+
#--initialize-at-build-time=org.apache.arrow.memory.BaseAllocator$Config \
5+
#--initialize-at-build-time=org.apache.arrow.memory.DefaultAllocationManagerOption \
6+
#--initialize-at-build-time=org.apache.arrow.memory.netty.NettyAllocationManager$1

google-cloud-bigquery/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-bigquery/reflect-config.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,42 @@
2929
"name":"java.nio.DirectByteBuffer",
3030
"methods":[{"name":"<init>","parameterTypes":["long","int"] }]
3131
},
32+
33+
{
34+
"name":"org.apache.arrow.memory.BaseAllocator",
35+
"allDeclaredFields":true,
36+
"queryAllDeclaredFields":true,
37+
"queryAllDeclaredMethods":true,
38+
"queryAllDeclaredConstructors":true
39+
},
40+
{
41+
"name":"org.apache.arrow.memory.BaseAllocator$Config",
42+
"allDeclaredFields":true,
43+
"queryAllDeclaredFields":true,
44+
"queryAllDeclaredMethods":true,
45+
"queryAllDeclaredConstructors":true
46+
},
47+
{
48+
"name":"org.apache.arrow.memory.DefaultAllocationManagerOption",
49+
"allDeclaredFields":true,
50+
"queryAllDeclaredFields":true,
51+
"queryAllDeclaredMethods":true,
52+
"queryAllDeclaredConstructors":true
53+
},
54+
{
55+
"name":"org.apache.arrow.memory.netty.NettyAllocationManager$1",
56+
"allDeclaredFields":true,
57+
"queryAllDeclaredFields":true,
58+
"queryAllDeclaredMethods":true,
59+
"queryAllDeclaredConstructors":true
60+
},
61+
{
62+
"name":"org.apache.arrow.memory.netty.DefaultAllocationManagerFactory",
63+
"allDeclaredFields":true,
64+
"queryAllDeclaredFields":true,
65+
"queryAllDeclaredMethods":true,
66+
"queryAllDeclaredConstructors":true
67+
},
3268
{
3369
"name":"org.apache.arrow.memory.DefaultAllocationManagerFactory",
3470
"allDeclaredFields":true,

google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
public class ITBigQueryTest {
220220
@Test
221221
public void testArrowForName() throws Exception {
222+
// mvn test -Pnative '-Dtest=com.google.cloud.bigquery.it.ITBigQueryTest#testArrowForName' -DtrimStackTrace=false
222223
final String clazzName = "org.apache.arrow.memory.netty.DefaultAllocationManagerFactory";
223224
try {
224225
BufferAllocator allocator = new RootAllocator(Long.MAX_VALUE);

0 commit comments

Comments
 (0)