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

[jira] [Work started] (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 ]

Work on AVRO-3613 started by Robert Yokota.
-------------------------------------------
> 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
>            Reporter: Robert Yokota
>            Assignee: Robert Yokota
>            Priority: Major
>
> 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)