voonhous commented on code in PR #17763:
URL: https://github.com/apache/hudi/pull/17763#discussion_r2656148316
##########
hudi-hadoop-common/src/test/java/org/apache/parquet/avro/TestAvroSchemaConverter.java:
##########
@@ -450,10 +445,9 @@ public void testUnknownTwoLevelListOfLists() throws
Exception {
// This tests the case where we don't detect a 2-level list by the repeated
// group's name, but it must be 2-level because the repeated group doesn't
// contain an optional or repeated element as required for 3-level lists
- Schema listOfLists =
optional(Schema.createArray(Schema.createArray(Schema.create(INT))));
- Schema schema = Schema.createRecord("UnknownTwoLevelListInList", null,
null, false);
- schema.setFields(
- Arrays.asList(new Schema.Field("listOfLists", listOfLists, null,
JsonProperties.NULL_VALUE)));
+ HoodieSchema listOfLists =
HoodieSchema.createNullable(HoodieSchema.createArray(HoodieSchema.createArray(HoodieSchema.create(HoodieSchemaType.INT))));
+ HoodieSchema schema =
HoodieSchema.createRecord("UnknownTwoLevelListInList", null, null, false,
+ Collections.singletonList(HoodieSchemaField.of("listOfLists",
listOfLists, null, HoodieSchema.NULL_VALUE)));
System.err.println("Avro schema: " + schema.toString(true));
Review Comment:
Removed all:
```java
System.err.println("Avro schema: " + schema.toString(true));
```
--
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]