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

Michiel Mertens updated AVRO-2736:
----------------------------------
    Description: 
When using the attached JSON schema, we can encode/decode without problems.

When i promote BurstInfo:demodId from int to long, decoding fails on old files.

I get the following exception
{noformat}
Invalid operation. Schema requires: Union, got: Record 

{noformat}
It seems that the resolving decoder is resolving correctly, but the exception 
is throw during parsing at accessing the root of the tree.

  was:
When using the attached JSON schema, we can encode/decode without problems.

When i promote BurstInfo:demodId from int to long, decoding fails on old files.

I get the following exception
{noformat}
Invalid operation. Schema requires: Union, got: Record 

{noformat}
It seems that the resolving decoder is resolving correctly, but the exception 
is throw during parsing.


> Avro-cpp schema resolution fails on complex union type
> ------------------------------------------------------
>
>                 Key: AVRO-2736
>                 URL: https://issues.apache.org/jira/browse/AVRO-2736
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: c++
>    Affects Versions: 1.9.1
>         Environment: ubuntu 18.04
>            Reporter: Michiel Mertens
>            Priority: Major
>         Attachments: ControllerLog.avro.json
>
>
> When using the attached JSON schema, we can encode/decode without problems.
> When i promote BurstInfo:demodId from int to long, decoding fails on old 
> files.
> I get the following exception
> {noformat}
> Invalid operation. Schema requires: Union, got: Record 
> {noformat}
> It seems that the resolving decoder is resolving correctly, but the exception 
> is throw during parsing at accessing the root of the tree.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to