You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2014/12/16 19:37:13 UTC
[jira] [Updated] (AVRO-1545) python bindings for avro discard
customized type information for primitive types
[ https://issues.apache.org/jira/browse/AVRO-1545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Doug Cutting updated AVRO-1545:
-------------------------------
Fix Version/s: 1.8.0
Assignee: Dustin Spicuzza
This looks reasonable to me, but I'm not a Python expert. Can someone more familiar with Python please review it? If no one reviews it soon, I'm inclined to commit it.
> 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
> Assignee: Dustin Spicuzza
> Fix For: 1.8.0
>
> Attachments: types.diff
>
>
> 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.3.4#6332)