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

avro-c genertaing nested primitive type Avro schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.2
    • None
    • c
    • None

    Description

      We are using avro-c library to generate avro files, the json schema we have is below while generating the avro file
      {"type": "record",
      "name": "PaggRecord",
      "namespace": "com.oath.onevideo.avro.record",
      "fields": [

      {"name": "date","type": "int"}

      ,

      {"name": "hour","type": "int"}

      ]
      }

      After writing the avro file the schema in the avro file is becoming below, due to when we are trying parse the avro using avro-cpp the parser is failing with invalid schema error.

      {"type": "record",
      "name": "PaggRecord",
      "namespace": "com.oath.onevideo.avro.record",
      "fields": [{"name": "date","type": {"type": "int"}},{"name": "hour","type": {"type": "int"}},{"name": "view_hour","type": {"type": "int"}}]
      }

      Is there a way to resolve this issue?

      Attachments

        Activity

          People

            Unassigned Unassigned
            venkaiahp Venkaiah Pottela
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: