[
https://issues.apache.org/jira/browse/AVRO-2677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17013468#comment-17013468
]
Hudson commented on AVRO-2677:
------------------------------
SUCCESS: Integrated in Jenkins build AvroJava #800 (See
[https://builds.apache.org/job/AvroJava/800/])
AVRO-2677: Ruby parse/serialize bytes decimal logical type (#761) (fokko:
[https://github.com/apache/avro/commit/912c15b36caacdea5cf3a6753316022156681470])
* (edit) lang/ruby/test/test_schema.rb
* (edit) lang/ruby/lib/avro/schema.rb
> 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
> Fix For: 1.10.0
>
>
>
> {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)