ollis opened a new issue, #40:
URL: https://github.com/apache/avro-rs/issues/40
I am unable to deserialze an avro record with a Bigdecimal field. Given this
minimal test:
```
#[test]
fn minimal() {
#[derive(Debug, serde::Deserialize)]
struct Test {
decimal: apache_avro::Decimal,
}
let decimal_value = Value::Decimal(Decimal::from(vec![1, 24]));
let record = Value::Record(vec![("decimal".to_string(),
decimal_value)]);
let deserialize_result = from_value::<Test>(&record);
dbg!(deserialize_result);
}
```
The output is `deserialize_result = Err(
Failed to deserialize Avro value into value: Expected a Record or Union,
got: Decimal(Decimal { value: 280, len: 2 }),
)`
--
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]