Avro
  1. Avro
  2. AVRO-583

Bad error message if you try and name an array or a map: org.apache.avro.SchemaParseException: Undefined name: "map"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.4.0
    • Component/s: java
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Error message should be something like "You can't name a map"

      Broken schema:
      {
      "name":"annoyance",
      "type":"record",
      "fields":[

      { "name":"mymap", "type":"map", "values":"string" }

      ]
      }

      Error:

      org.apache.avro.SchemaParseException: Undefined name: "map"
      at org.apache.avro.Schema.parse(Schema.java:876)
      at org.apache.avro.Schema.parse(Schema.java:912)
      at org.apache.avro.Schema.parse(Schema.java:796)

      1. AVRO-583.patch
        0.9 kB
        Doug Cutting

        Activity

        Sam Pullara created issue -
        Jeff Hammerbacher made changes -
        Field Original Value New Value
        Component/s java [ 12312780 ]
        Doug Cutting made changes -
        Attachment AVRO-583.patch [ 12451067 ]
        Doug Cutting made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Assignee Doug Cutting [ cutting ]
        Doug Cutting made changes -
        Hadoop Flags [Reviewed]
        Resolution Fixed [ 1 ]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Doug Cutting
            Reporter:
            Sam Pullara
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development