mapleFU commented on issue #37389: URL: https://github.com/apache/arrow/issues/37389#issuecomment-1694177965
Emmm I found that: * In standard, the map key should be a "required" field: https://github.com/apache/parquet-format/blob/master/LogicalTypes.md#maps * The schema in your file is ``` required group field_id=-1 hive_schema { optional group field_id=-1 array_map (List) { repeated group field_id=-1 bag { optional group field_id=-1 array_element (Map) { repeated group field_id=-1 key_value (Map) { optional binary field_id=-1 key (String); optional binary field_id=-1 value (String); } } } } } SchemaNode: required group field_id=-1 hive_schema { optional group field_id=-1 array_map (List) { repeated group field_id=-1 bag { optional group field_id=-1 array_element (Map) { repeated group field_id=-1 key_value (Map) { optional binary field_id=-1 key (String); optional binary field_id=-1 value (String); } } } } } ``` Which the key is optional. cc @wgtmac do we need to support file like this? -- 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]
