You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Kyle Schoonover (Jira)" <ji...@apache.org> on 2022/03/18 17:08:00 UTC
[jira] [Commented] (AVRO-3041) Reflect: Default converters are not used for nullable unions
[ https://issues.apache.org/jira/browse/AVRO-3041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17508958#comment-17508958 ]
Kyle Schoonover commented on AVRO-3041:
---------------------------------------
[~mgrigorov] This fix has been merged
> Reflect: Default converters are not used for nullable unions
> ------------------------------------------------------------
>
> Key: AVRO-3041
> URL: https://issues.apache.org/jira/browse/AVRO-3041
> Project: Apache Avro
> Issue Type: Bug
> Components: csharp
> Affects Versions: 1.10.1
> 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.20.1#820001)