You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Rich (Jira)" <ji...@apache.org> on 2023/06/10 01:46:00 UTC

[jira] [Created] (AVRO-3775) [Ruby] decimal default is not converted to BigDecimal

Rich created AVRO-3775:
--------------------------

             Summary: [Ruby] decimal default is not converted to BigDecimal
                 Key: AVRO-3775
                 URL: https://issues.apache.org/jira/browse/AVRO-3775
             Project: Apache Avro
          Issue Type: Bug
          Components: ruby
    Affects Versions: 1.11.1
            Reporter: Rich


*Background*

https://issues.apache.org/jira/browse/AVRO-3773 is to fix the validation of decimal default

After it is fixed (or we skip it), we are going to decode it.

the default value is used when resolving schema resolution.

*Expect*

the decoded record should have default value in BigDecimal type, e.g.
{code:java}
{"sales" => BigDecimal("12.34"), "tax" => BigDecimal("0.000")} {code}
*Actual*

the decoded record have default value in string/bytes type
{code:java}
{"sales" => BigDecimal("12.34"), "tax" => "\u0000"} {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)