HuaHuaY commented on code in PR #49125:
URL: https://github.com/apache/arrow/pull/49125#discussion_r2785618187
##########
cpp/src/parquet/arrow/schema.cc:
##########
@@ -720,88 +783,8 @@ Status ListToSchemaField(const GroupNode& group, LevelInfo
current_levels,
}
int16_t repeated_ancestor_def_level = current_levels.IncrementRepeated();
- if (list_node.is_group()) {
- const auto& list_group = static_cast<const GroupNode&>(list_node);
- if (list_group.field_count() > 1) {
- // The inner type of the list should be a struct when there are multiple
fields
- // in the repeated group
- RETURN_NOT_OK(GroupToStruct(list_group, current_levels, ctx, out,
child_field));
- } else if (list_group.field_count() == 1) {
- const auto& repeated_field = list_group.field(0);
- if (repeated_field->is_repeated()) {
- // Special case where the inner type might be a list with two-level
encoding
Review Comment:
I have added some examples back.
--
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]