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

Oleksandr Shulgin commented on AVRO-1669:
-----------------------------------------

Example code produces this output (missing logicalType and any further details):

{quote}
\{"type":"fixed","name":"test","size":20\}
{quote}

> Schema from JSON drops extra attributes
> ---------------------------------------
>
>                 Key: AVRO-1669
>                 URL: https://issues.apache.org/jira/browse/AVRO-1669
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.7.7
>            Reporter: Oleksandr Shulgin
>         Attachments: avro-schema-from-json-logical-type-example.c
>
>
> Schema produced by avro_schema_from_json can be missing substantial details 
> found in the JSON, e.g. logicalType.
> The spec says that Decimal logical type can be derived from either fixed or 
> bytes type: http://avro.apache.org/docs/1.7.7/spec.html#Decimal
> However, after parsing a correct JSON, the resulting schema is missing any 
> details of the logical type.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to