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 2023/06/16 16:05:00 UTC

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

    [ https://issues.apache.org/jira/browse/AVRO-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17733578#comment-17733578 ] 

ASF subversion and git services commented on AVRO-3775:
-------------------------------------------------------

Commit 3b77d40ee13330646b106f3b66ad7670aa9b71b2 in avro's branch refs/heads/master from Rich
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=3b77d40ee ]

AVRO-3775: [ruby] fix decoded default value of logical type (#2277)

Co-authored-by: Tim Perkins <tj...@users.noreply.github.com>

> [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
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> *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)