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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.2
    • 1.4.0
    • java
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: