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

Thomas Sanchez updated AVRO-1663:
---------------------------------
    Description: 
{code}{
  "type": "record",
  "name": "EventName",
  "namespace": "com.company.avro.schemas",
  "fields": [
    {"name": "eventname_model",
     "type": {
       "type": "enum",
       "namespace": "com.company.models",
       "name": "EventName",
       "symbols": ["XXXX"]
     }
    }
 ]
}
{code}

Such a schema is perfectly valid but the C library does no handle it because it 
does not parse the namespace field.

  was:
{code:json}{
  "type": "record",
  "name": "EventName",
  "namespace": "com.company.avro.schemas",
  "fields": [
    {"name": "eventname_model",
     "type": {
       "type": "enum",
       "namespace": "com.company.models",
       "name": "EventName",
       "symbols": ["XXXX"]
     }
    }
 ]
}
{code}

Such a schema is perfectly valid but the C library does no handle it because it 
does not parse the namespace field.


> C Library does not handle enum's namespace
> ------------------------------------------
>
>                 Key: AVRO-1663
>                 URL: https://issues.apache.org/jira/browse/AVRO-1663
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.7.7
>            Reporter: Thomas Sanchez
>         Attachments: AVRO-1663.patch
>
>
> {code}{
>   "type": "record",
>   "name": "EventName",
>   "namespace": "com.company.avro.schemas",
>   "fields": [
>     {"name": "eventname_model",
>      "type": {
>        "type": "enum",
>        "namespace": "com.company.models",
>        "name": "EventName",
>        "symbols": ["XXXX"]
>      }
>     }
>  ]
> }
> {code}
> Such a schema is perfectly valid but the C library does no handle it because 
> it does not parse the namespace field.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to