You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Venkaiah Pottela (JIRA)" <ji...@apache.org> on 2017/12/08 11:42:00 UTC

[jira] [Updated] (AVRO-2111) avro-c genertaing nested primitive type Avro schema

     [ https://issues.apache.org/jira/browse/AVRO-2111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Venkaiah Pottela updated AVRO-2111:
-----------------------------------
    Summary:  avro-c genertaing nested primitive type Avro schema  (was: Avro schema genertaing nested primitive type using avro-c)

>  avro-c genertaing nested primitive type Avro schema
> ----------------------------------------------------
>
>                 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)