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

Improve “UDF/UDTF" to support constructor with parameter.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: Table API & SQL
    • Labels:
      None

      Description

      Currently UDF/UDTF in the codegen phase using a nonparametric constructor to create the instance, causing the user can not include the state value in the UDF/UDTF. The UDF/UDTF's codegen phase can use a serialized mechanism so that the UDTF can contain state values.
      1. UserDefinedFunction inherits Serializable.
      2. Modify CodeGenerator about UDF/UDTF part.
      3. Modify TableAPI about UDF/UDTF
      4. Add Test.

        Attachments

        There are no Sub-Tasks for this issue.

          Activity

            People

            • Assignee:
              sunjincheng121 sunjincheng
              Reporter:
              sunjincheng121 sunjincheng
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: