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

Felix Hagemans updated AVRO-4166:
---------------------------------
    Description: 
It looks like a union type of nullable and UUID breaks in avro 1.12.0.

This works: 
{"name": "id", "type": \{ "type": "string", "logicalType": "uuid" }}

 

This works:

{"name": "nan", "type": ["null", "string"]}

 

But this does not: 
{"name": "id", "type": ["null",

{ "type": "string", "logicalType": "uuid" }

]}

It gives the following exception when (binary) serializing the object:
_Unknown datum type java.util.UUID: 4b9feca4-f18d-4ba5-97ee-18fc3a24cc6f_

  was:
It looks like a union type of nullable and UUID breaks in avro 1.12.0.

This works: 
{"name": "id", "type": \{ "type": "string", "logicalType": "uuid" }},

This works:
{"name": "nan", "type": ["null", "string"]},
But this does not: 
{"name": "id", "type": ["null",

{ "type": "string", "logicalType": "uuid" }

]},

It gives the following exception when (binary) serializing the object:
_Unknown datum type java.util.UUID: 4b9feca4-f18d-4ba5-97ee-18fc3a24cc6f_


> Nullable UUID union breaks serialization 
> -----------------------------------------
>
>                 Key: AVRO-4166
>                 URL: https://issues.apache.org/jira/browse/AVRO-4166
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.12.0
>         Environment: Apache avro 1.12.0
>            Reporter: Felix Hagemans
>            Priority: Major
>
> It looks like a union type of nullable and UUID breaks in avro 1.12.0.
> This works: 
> {"name": "id", "type": \{ "type": "string", "logicalType": "uuid" }}
>  
> This works:
> {"name": "nan", "type": ["null", "string"]}
>  
> But this does not: 
> {"name": "id", "type": ["null",
> { "type": "string", "logicalType": "uuid" }
> ]}
> It gives the following exception when (binary) serializing the object:
> _Unknown datum type java.util.UUID: 4b9feca4-f18d-4ba5-97ee-18fc3a24cc6f_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to