[ 
https://issues.apache.org/jira/browse/AVRO-3750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17733627#comment-17733627
 ] 

Ryan Skraba commented on AVRO-3750:
-----------------------------------

Oh hey!  Thanks Daniel -- I didn't see this JIRA, but I saw AVRO-3761 go by 
with an identical fix to yours!  Thanks for pointing it out, this should be 
released in the next release.

> Python Optional UUIDs are not allowed
> -------------------------------------
>
>                 Key: AVRO-3750
>                 URL: https://issues.apache.org/jira/browse/AVRO-3750
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 1.11.1
>            Reporter: Daniel Young
>            Priority: Major
>
> If a union type of null and logical type of uuid is used, Avro will try to 
> decode the object as a UUID and create a TypeError exception, which is not 
> caught.
> Example Schema:
> {code:java}
> {
>   "name": "userId",
>   "type": [
>     "null",
>     {
>       "type": "string",
>       "logicalType": "uuid"
>     }
>   ]
> }{code}
> if the example schema is given a userId of None then the application will 
> stop with an uncaught exception.



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

Reply via email to