avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dustin Spicuzza (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1545) python bindings for avro discard customized type information for primitive types
Date Tue, 26 Aug 2014 22:17:58 GMT

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

Dustin Spicuzza commented on AVRO-1545:
---------------------------------------

This seems like a pretty reasonable patch, has anyone looked at it yet?

> python bindings for avro discard customized type information for primitive types
> --------------------------------------------------------------------------------
>
>                 Key: AVRO-1545
>                 URL: https://issues.apache.org/jira/browse/AVRO-1545
>             Project: Avro
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 1.7.6
>            Reporter: Dustin Spicuzza
>         Attachments: primitive.patch
>
>
> Given the following avsc file:
> {
>   "type" : "record",
>   "name" : "BrokenRecord",
>   "namespace" : "whatever",
>   "fields" : [ {
>     "name" : "a_string",
>     "type" : {
>       "type" : "string",
>       "avro.java.string" : "String"
>     }
>   } ]
> }
> The python schema parser discards the avro.java.string marker, which breaks interoperability
with java. In schema.py, it discards the other property information and compresses the type
down to just a 'string'.
> Patch attached against the 1.7.6 release. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message