voonhous commented on code in PR #17763:
URL: https://github.com/apache/hudi/pull/17763#discussion_r2656147126
##########
hudi-hadoop-common/src/test/java/org/apache/parquet/avro/TestAvroSchemaConverter.java:
##########
@@ -306,9 +303,9 @@ public void testOptionalMapValue() throws Exception {
@Test
public void testOptionalArrayElement() throws Exception {
- Schema schema = Schema.createRecord("record1", null, null, false);
- Schema optionalIntArray = Schema.createArray(optional(Schema.create(INT)));
- schema.setFields(Arrays.asList(new Schema.Field("myintarray",
optionalIntArray, null, null)));
+ HoodieSchema optionalIntArray =
HoodieSchema.createArray(HoodieSchema.createNullable(HoodieSchema.create(HoodieSchemaType.INT)));
Review Comment:
Addresed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]