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/23 07:59:01 UTC

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

Jiri Humpolicek created AVRO-1686:
-------------------------------------

             Summary: 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)