You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/11/26 18:58:00 UTC
[jira] [Updated] (AVRO-3678) [Rust] Support write float value to field defined as double
[ https://issues.apache.org/jira/browse/AVRO-3678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated AVRO-3678:
---------------------------------
Labels: pull-request-available (was: )
> [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
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.12.0, 1.11.2
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> [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)