Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
9.0.0
Description
https://github.com/apache/arrow/blob/master/go/parquet/pqarrow/file_writer.go#L75
Right now the only way to pass in KV metadata is to enable StoreSchema and pass it as part of the schema. In otherwise we can't pass through metadata without also store ARROW:schema
I suggest change it to the following
meta := make(metadata.KeyValueMetadata, 0) for i := 0; i < arrschema.Metadata().Len(); i++ { meta.Append(arrschema.Metadata().Keys()[i], arrschema.Metadata().Values()[i]) } if arrprops.storeSchema { serializedSchema := flight.SerializeSchema(arrschema, props.Allocator()) meta.Append("ARROW:schema", base64.StdEncoding.EncodeToString(serializedSchema)) }
Attachments
Issue Links
- links to