Rich created AVRO-3776:
--------------------------
Summary: [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
*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)