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

Java compiler/python parser don't conform to spec re object schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.2.0
    • 1.3.0
    • java, python
    • None

    Description

      According to the spec (if I'm reading it correctly)

      Primitive type names are also defined type names. Thus, for example, the schema "string" is equivalent to:

      {"type": "string"}

      – protocol
      A message has attributes:

      • a response schema; and

        however the following fails to compile/parse under java/python:

      {
      "protocol": "p1",

      "messages": {
      "m1": {
      "request": [],
      "response":

      {"type":"string"}

      }
      }
      }

      Exception in thread "main" org.apache.avro.SchemaParseException: Type not yet supported: string
      at org.apache.avro.Schema.parse(Schema.java:430)
      at org.apache.avro.Protocol.parseMessage(Protocol.java:275)

      Attachments

        1. AVRO-206.patch
          3 kB
          Doug Cutting

        Issue Links

          Activity

            People

              phunt Patrick D. Hunt
              phunt Patrick D. Hunt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: