You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "John Gonyo (Jira)" <ji...@apache.org> on 2021/02/11 20:40:00 UTC

[jira] [Commented] (AVRO-3041) Reflect: Default converters are not tried for nullable unions

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

John Gonyo commented on AVRO-3041:
----------------------------------

See solution in https://github.com/apache/avro/pull/1088

> Reflect: Default converters are not tried for nullable unions
> -------------------------------------------------------------
>
>                 Key: AVRO-3041
>                 URL: https://issues.apache.org/jira/browse/AVRO-3041
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: csharp
>            Reporter: John Gonyo
>            Priority: Major
>
> Default converters can be added for a given Avro type and a Property type.  For example, to map a long to a DateTimeOffset.  However, if the class property is nullable, the default converter is not used.
>  
> Avro reflection should find the converter to use for nullable primitives.  It can also be helpful and provide automatic translation from non-nullable converters to nullable ones.  This allows a client to create one non-nullable converter that can be used for nullable properties.
>  
>  



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