diff --git a/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/TestIcebergV2.java b/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/TestIcebergV2.java index b8da11f5e764..9b6d9d4f8533 100644 --- a/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/TestIcebergV2.java +++ b/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/TestIcebergV2.java @@ -1494,7 +1494,7 @@ void testAnalyzeNoSnapshot() catalog.newCreateTableTransaction( SESSION, schemaTableName, - new Schema(Types.NestedField.of(1, true, "x", Types.LongType.get())), + new Schema(Types.NestedField.optional(1, "x", Types.LongType.get())), PartitionSpec.unpartitioned(), SortOrder.unsorted(), Optional.ofNullable(catalog.defaultTableLocation(SESSION, schemaTableName)),