Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1686

ENUM symbols are sorted by name in python3 implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.7.7
    • None
    • python
    • None

    Description

      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'}

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yuryn Jiri Humpolicek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: