You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/04/30 09:35:07 UTC
[GitHub] [arrow-rs] BohuTANG opened a new issue #241: schema: missing field `metadata` when deserialize
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:
users@infra.apache.org
[GitHub] [arrow-rs] nevi-me closed issue #241: schema: missing field `metadata` when deserialize
Posted by GitBox <gi...@apache.org>.
nevi-me closed issue #241:
URL: https://github.com/apache/arrow-rs/issues/241
--
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:
users@infra.apache.org
[GitHub] [arrow-rs] alamb commented on issue #241: schema: missing field `metadata` when deserialize
Posted by GitBox <gi...@apache.org>.
alamb commented on issue #241:
URL: https://github.com/apache/arrow-rs/issues/241#issuecomment-831248292
Thanks for the report @BohuTANG
--
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:
users@infra.apache.org