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 subversion and git services (Jira)" <ji...@apache.org> on 2022/12/05 10:59:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17643271#comment-17643271 ]
ASF subversion and git services commented on AVRO-3678:
-------------------------------------------------------
Commit b8897c60ce990d15564a850e3aaf22945c4e7788 in avro's branch refs/heads/dependabot/maven/lang/java/slf4j.version-2.0.5 from Martin Grigorov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=b8897c60c ]
AVRO-3678: [Rust] Support writing float value to field defined as double (#1991)
Originally contributed by @shaeqahmed with #1985
Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
> [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: 1h 40m
> 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)