Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-48939

Support recursive reference of Avro schema

    XMLWordPrintableJSON

Details

    Description

      Recursive reference denotes the case that the type of a field can be defined before in the parent nodes. A simple example is:

      {
        "type": "record",
        "name": "LongList",
        "fields" : [
          {"name": "value", "type": "long"},
          {"name": "next", "type": ["null", "LongList"]}
        ]
      }
      

      This is written in Avro Schema DSL and represents a linked list data structure. Spark currently will throw an error on this schema. Many users used schema like this, so we should support it. 

      Attachments

        Activity

          People

            eason-yuchen-liu Yuchen Liu
            eason-yuchen-liu Yuchen Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: