You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2022/08/30 12:12:00 UTC

[jira] [Resolved] (AVRO-3613) Unions cannot have more than one logical type in C#

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

Martin Tzvetanov Grigorov resolved AVRO-3613.
---------------------------------------------
    Fix Version/s: 1.11.2
       Resolution: Fixed

> Unions cannot have more than one logical type in C#
> ---------------------------------------------------
>
>                 Key: AVRO-3613
>                 URL: https://issues.apache.org/jira/browse/AVRO-3613
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: csharp
>            Reporter: Robert Yokota
>            Assignee: Robert Yokota
>            Priority: Major
>             Fix For: 1.12.0, 1.11.2
>
>
> Unions cannot have more than one logical type in C#.
> The following code fails:
> {code:java}
> Schema schema = Schema.Parse(
> "[\"null\",\n" +
> " { \"type\": \"int\", \"logicalType\": \"date\" },\n" +
> " { \"type\": \"long\", \"logicalType\": \"timestamp-millis\" }\n" +
> "]");{code}
>  
> The error is
> {code:java}
>  Avro.SchemaParseException : Duplicate type in union: logical at '[2]'{code}
>  



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