[ 
https://issues.apache.org/jira/browse/AVRO-2677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated AVRO-2677:
---------------------------------
    Labels: pull-request-available  (was: )

> Decimal logical type don't serialize precision and scale in Ruby
> ----------------------------------------------------------------
>
>                 Key: AVRO-2677
>                 URL: https://issues.apache.org/jira/browse/AVRO-2677
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: ruby
>            Reporter: Sergey Toy
>            Assignee: Sergey Toy
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.10.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
>  
> {code:java}
> payload = '{ "type": "bytes", "logicalType": "decimal", "precision": 9, 
> "scale": 2 }'
> result = Avro::Schema.real_parse(JSON.parse(payload))
> result.to_avro # => {"type"=>"bytes", "logicalType"=>"decimal"}{code}
>  
> Should be
> {code:java}
> {"type"=>"bytes", "logicalType"=>"decimal", "precision"=>9, "scale"=>2}{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to