Shaeq Ahmed created AVRO-3678:
---------------------------------
Summary: [Rust] Support write float value to field defined as
double
Key: AVRO-3678
URL: https://issues.apache.org/jira/browse/AVRO-3678
Project: Apache Avro
Issue Type: New Feature
Components: rust
Reporter: Shaeq Ahmed
Assignee: Shaeq Ahmed
Fix For: 1.12.0, 1.11.2
[https://github.com/apache/avro/blob/b8937526d32928b3b29040e862f7689d7230bddb/lang/rust/avro/src/types.rs#L405]
Currently a Avro value of the type float (32) cannot be resolved against a
schema where the type is defined as double (64). We already support type
widening from int -> long (dest. schema) as this is completely lossless, so I
think we should also support the same for float -> double for consistency &
convenience as this is a common use case.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)