wgtmac commented on code in PR #43995:
URL: https://github.com/apache/arrow/pull/43995#discussion_r1824020918
##########
cpp/src/parquet/arrow/schema.cc:
##########
@@ -631,9 +633,12 @@ Status ListToSchemaField(const GroupNode& group, LevelInfo
current_levels,
if (group.field_count() != 1) {
return Status::Invalid("LIST-annotated groups must have a single child.");
}
- if (group.is_repeated()) {
- return Status::Invalid("LIST-annotated groups must not be repeated.");
- }
+
+ // The Parquet spec requires that LIST-annotated group cannot be repeated
when
+ // it applies normal three-level encoding. We need to figure out legacy list
+ // structures and do not enforce this rule for them.
+ bool is_legacy_list_structure = true;
Review Comment:
Now I have changed the repetition check for only non-legacy list.
--
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]