RustedBones commented on code in PR #1262:
URL: https://github.com/apache/parquet-java/pull/1262#discussion_r1678977866
##########
parquet-avro/src/main/java/org/apache/parquet/avro/AvroSchemaConverter.java:
##########
@@ -300,9 +300,8 @@ private Schema convertFields(String name, List<Type>
parquetFields, Map<String,
Integer nameCount = names.merge(name, 1, (oldValue, value) -> oldValue +
1);
for (Type parquetType : parquetFields) {
Schema fieldSchema = convertField(parquetType, names);
- if (parquetType.isRepetition(REPEATED)) {
- throw new UnsupportedOperationException(
- "REPEATED not supported outside LIST or MAP. Type: " +
parquetType);
+ if (parquetType.isRepetition(REPEATED)) { // If a repeated field is
ungrouped, treat as REQUIRED per spec
+ fields.add(new Schema.Field(parquetType.getName(),
Schema.createArray(fieldSchema)));
Review Comment:
This constructor is not available in avro 1.8. This leads to a runtime error
```
Cause: java.lang.NoSuchMethodError: 'void
org.apache.avro.Schema$Field.<init>(java.lang.String, org.apache.avro.Schema)'
```
When using `parquet-avro` 1.14 with avro version 1.8
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]