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

Enum reader/writer resolution doesn't report errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 1.7.5
    • None
    • java
    • None

    Description

      According to the specification, when a reader enum does not contain all symbols from the writer enum, an error should be signaled.

      ResolvingGrammarGenerator fails to report such errors.
      In particular, mkEnumAdjust() silently maps unknown symbols of the writers with symbols named "No match for [writer symbol]".
      https://github.com/apache/avro/blob/trunk/lang/java/avro/src/main/java/org/apache/avro/io/parsing/ResolvingGrammarGenerator.java#L409

      Shouldn't this instead create an ErrorAction?

      Attachments

        Activity

          People

            Unassigned Unassigned
            kryzthov Christophe Taton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: