KevinWen007 commented on a change in pull request #2615:
URL: https://github.com/apache/incubator-inlong/pull/2615#discussion_r810903163
##########
File path:
inlong-sort/sort-connectors/src/main/java/org/apache/inlong/sort/flink/hive/formats/parquet/ParquetRowWriter.java
##########
@@ -104,7 +114,15 @@ private FieldWriter createWriter(LogicalType t, Type type)
{
throw new UnsupportedOperationException("Unsupported type:
" + type);
}
} else {
- throw new IllegalArgumentException("Unsupported data type: " + t);
+ switch (t.getTypeRoot()) {
+ case ARRAY:
+ return new ArrayWriter(((ArrayType) t).getElementType(),
+
type.asGroupType().getType(0).asGroupType().getType(0));
Review comment:
The first group corresponds to field name and the second group
corresponds to a specified group called "list" as blow:
```
optional group f13 (LIST) {
repeated group list {
optional int32 element;
}
}
```
--
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]