Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3613

Unions cannot have more than one logical type in C#

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0, 1.11.2
    • csharp
    • None

    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]'

       

      Attachments

        Activity

          People

            rayokota Robert Yokota
            rayokota Robert Yokota
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: