Uploaded image for project: '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
    • Status: Closed
    • Priority: 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)

        Attachments

        1. AVRO-583.patch
          0.9 kB
          Doug Cutting

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: