You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Jiri Humpolicek (JIRA)" <ji...@apache.org> on 2015/06/24 10:51:04 UTC

[jira] [Resolved] (AVRO-1686) ENUM symbols are sorted by name in python3 implementation

     [ 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)