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 18:57:00 UTC

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

Robert Yokota created AVRO-3613:
-----------------------------------

             Summary: 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
         Environment: 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]'`
            Reporter: Robert Yokota






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