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

RAJAT SOMANI updated AVRO-2378:
-------------------------------
    Description: 
byte[] data type resolves to array type when specified in union as \{ "type": 
"null", "bytes" } in the avro schema defined for a byte[] by using

ReflectData.allowNull().get().getSchema(PlaceFulfillmentOrder.class);

and then fails because byte primitive is not supported in array type after 
resolveUnion resolves it to array using Reflect data.

  was:byte[] data type resolves to array type and then fails because byte 
primitive is not supported in array type after resolveUnion resolves it to 
array using Reflect data when specified in union as \{ "type": "null", "bytes" }


> byte[] is not supported by Reflect data when specified in union as "type": 
> "null", "bytes"
> ------------------------------------------------------------------------------------------
>
>                 Key: AVRO-2378
>                 URL: https://issues.apache.org/jira/browse/AVRO-2378
>             Project: Apache Avro
>          Issue Type: Bug
>    Affects Versions: 1.8.2
>            Reporter: RAJAT SOMANI
>            Priority: Major
>
> byte[] data type resolves to array type when specified in union as \{ "type": 
> "null", "bytes" } in the avro schema defined for a byte[] by using
> ReflectData.allowNull().get().getSchema(PlaceFulfillmentOrder.class);
> and then fails because byte primitive is not supported in array type after 
> resolveUnion resolves it to array using Reflect data.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to