[
https://issues.apache.org/jira/browse/AVRO-3613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Yokota updated AVRO-3613:
--------------------------------
Description:
Unions cannot have more than one logical type in C#.
The following code fails
```
Schema schema = Schema.Parse(
"[\"null\",\n" +
" \{ \"type\": \"int\", \"logicalType\": \"date\" },\n" +
" \{ \"type\": \"long\", \"logicalType\": \"timestamp-millis\" }\n" +
"]");```
The error is `Avro.SchemaParseException : Duplicate type in union: logical at
'[2]'`
> 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
> Priority: Major
>
> Unions cannot have more than one logical type in C#.
> The following code fails
> ```
> Schema schema = Schema.Parse(
> "[\"null\",\n" +
> " \{ \"type\": \"int\", \"logicalType\": \"date\" },\n" +
> " \{ \"type\": \"long\", \"logicalType\": \"timestamp-millis\" }\n" +
> "]");```
> The error is `Avro.SchemaParseException : Duplicate type in union: logical at
> '[2]'`
--
This message was sent by Atlassian Jira
(v8.20.10#820010)