Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.8.2
-
None
-
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": "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?