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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.3.0
    • Component/s: java, python
    • Labels:
      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

          Issue Links

            Activity

              People

              • Assignee:
                phunt Patrick Hunt
                Reporter:
                phunt Patrick Hunt
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: