BohuTANG opened a new issue #241:
URL: https://github.com/apache/arrow-rs/issues/241
**Describe the bug**
In flight server/client mode, if the server schema is:
```
let schema = Schema::new(vec![
Field::new("name", DataType::Utf8, false),
Field::new("address", DataType::Utf8, false),
Field::new("priority", DataType::UInt8, false),
])
```
The client will get an error:
```
status: Internal, message: "missing field `metadata` at line 1 column 431",
details: [], metadata: MetadataMap { headers: {"content-type":
"application/grpc", "date": "Fri, 30 Apr 2021 08:43:12 GMT"} }
```
If we change the server schema(placehold an empty metadta) to:
```
let metadata: HashMap<String, String> = [("Key".to_string(),
"Value".to_string())].iter().cloned().collect();
let schema = Schema::new_with_metadata(vec![
Field::new("name", DataType::Utf8, false),
Field::new("address", DataType::Utf8, false),
Field::new("priority", DataType::UInt8, false),
], metadata)
```
All is ok.
I have removed this line from my local crate, it works too:
https://github.com/apache/arrow-rs/blob/d008f31b107c1030a1f5144c164e8ca8bf543576/arrow/src/datatypes/schema.rs#L37
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]