From cc7951634daec7cfd56e78404b279e4eb36343ab Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 4 Dec 2024 10:16:13 +0100 Subject: [PATCH] Try fix for JNI test failure --- .../src/test/java/org/apache/arrow/dataset/TestAllTypes.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/dataset/src/test/java/org/apache/arrow/dataset/TestAllTypes.java b/java/dataset/src/test/java/org/apache/arrow/dataset/TestAllTypes.java index eb73663191414..f21c14c14f72b 100644 --- a/java/dataset/src/test/java/org/apache/arrow/dataset/TestAllTypes.java +++ b/java/dataset/src/test/java/org/apache/arrow/dataset/TestAllTypes.java @@ -96,10 +96,10 @@ private VectorSchemaRoot generateAllTypesVector(BufferAllocator allocator) { List childFields = new ArrayList<>(); childFields.add( new Field( - "int-child", new FieldType(false, new ArrowType.Int(32, true), null, null), null)); + "int-child", FieldType.nullable(new ArrowType.Int(32, true)), null)); Field structField = new Field( - "struct", new FieldType(true, ArrowType.Struct.INSTANCE, null, null), childFields); + "struct", FieldType.nullable(ArrowType.Struct.INSTANCE), childFields); Field[] fields = new Field[] { Field.nullablePrimitive("null", ArrowType.Null.INSTANCE),