Venkaiah Pottela created AVRO-2111:
--------------------------------------

             Summary: Avro schema genertaing nested primitive type using avro-c
                 Key: AVRO-2111
                 URL: https://issues.apache.org/jira/browse/AVRO-2111
             Project: Avro
          Issue Type: Bug
          Components: c
    Affects Versions: 1.8.2
            Reporter: Venkaiah Pottela


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?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to