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

Fix Scala code examples for UDF type inference annotations

    XMLWordPrintableJSON

Details

    Description

      The Scala code examples for the UDF type inference annotations are not correct.

      For example: the following FunctionHint annotation

      @FunctionHint(
        input = Array(@DataTypeHint("INT"), @DataTypeHint("INT")),
        output = @DataTypeHint("INT")
      )
      

      needs to be changed to

      @FunctionHint(
        input = Array(new DataTypeHint("INT"), new DataTypeHint("INT")),
        output = new DataTypeHint("INT")
      )
      

      Attachments

        Issue Links

          Activity

            People

              twalthr Timo Walther
              fhueske Fabian Hueske
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: