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 2023/06/10 02:39:00 UTC
[jira] [Updated] (AVRO-3776) [Ruby] fail to encode BigDecimal in decimal logical type
[ https://issues.apache.org/jira/browse/AVRO-3776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated AVRO-3776:
---------------------------------
Labels: pull-request-available (was: )
> [Ruby] fail to encode BigDecimal in decimal logical type
> --------------------------------------------------------
>
> Key: AVRO-3776
> URL: https://issues.apache.org/jira/browse/AVRO-3776
> Project: Apache Avro
> Issue Type: Bug
> Components: ruby
> Affects Versions: 1.11.1
> Reporter: Rich
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> *Background*
> when trying to encode BigDecimal to avro decimal (logical type), following error is raised
> Example
> {code:java}
> assert_encode_and_decode({"sales": BigDecimal("12.34")}, schema) {code}
> *Expect*
> encode successfully
> *Actual*
> {code:java}
> Avro::IO::AvroTypeError: The datum 0.1234e2 is not an example of schema "bytes" {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)