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)

Reply via email to