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

Unions with 2 records declared downward fail

    XMLWordPrintableJSON

Details

    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

        Issue Links

          Activity

            People

              clesaec Christophe Le Saec
              zolyfarkas Zoltan Farkas
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m