avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiri Humpolicek (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AVRO-1686) ENUM symbols are sorted by name in python3 implementation
Date Wed, 24 Jun 2015 08:51:04 GMT

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

Jiri Humpolicek resolved AVRO-1686.
-----------------------------------
    Resolution: Duplicate

> ENUM symbols are sorted by name in python3 implementation
> ---------------------------------------------------------
>
>                 Key: AVRO-1686
>                 URL: https://issues.apache.org/jira/browse/AVRO-1686
>             Project: Avro
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 1.7.7
>            Reporter: Jiri Humpolicek
>
> In python3 EnumSchema class in schema.py doesn't preserve order of symbols which leads
in total serialization/deserialization chaos.
> sample:
> import avro.schema
> avro.schema.Parse('{"symbols": ["IMPRESS", "EVENTS", "LAYOUT"], "type": "enum", "name":
"Type"}').to_json()
> returns:
> {'name': 'Type', 'symbols': ('EVENTS', 'IMPRESS', 'LAYOUT'), 'type': 'enum'}



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

Mime
View raw message