Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-7859

Allow field annotations to define TypeInformation

    XMLWordPrintableJSON

Details

    Description

      Right now it is impossible to define custom TypeInformation for specific fields. For example, we cannot provide information about a Row type that is a field of Scala case class. An option would be to allow fields to be annotated with @TypeInfo such that a type information can be provided.

      case class Test(a: Int, b: String, @TypeInfo(classOf[MyRowFactory]) c: Row)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            twalthr Timo Walther
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: