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),