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

Unions with 2 records declared downward fail

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.9.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The following IDL will fail complaining that 2 same type is declared twice in the union:

      @namespace("org.apache.avro.gen")
      protocol UnionFwd {
      
          record TestRecord {
            union {SR1, SR2} unionField;
          }
      
          record SR1 {
            string field;
          }
      
          record SR2 {
            string field;
          }
      
      }
      

      the fix for this can be pretty simple:

      https://github.com/zolyfarkas/avro/commit/56b215f73f34cc80d505875c90217916b271abb5

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zolyfarkas Zoltan Farkas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: