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

Improve generic type inference for User-Defined Functions

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Table SQL / API
    • None

    Description

      User-defined function has been a great extension for Flink SQL API to support much complex logics.
      We experienced many inconvenience when dealing with UDF with generic types and are summarized in the following doc.

      Detail implementation plans are listed in sub-tasks for the generic type inference / functioncatalog look up.

      In discussion topic: Can we optimize codegen while provide flexibility for output type generic, by the method in FLINK-9430 to chaining: generic result type UDF function with CAST operator.
      Initial thought here is to add an logical plan optimizer rule to create a UDFGenericResultTypeCast operator.

      Attachments

        Issue Links

        There are no Sub-Tasks for this issue.

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rongr Rong Rong
            rongr Rong Rong
            Votes:
            0 Vote for this issue
            Watchers:
            3 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

                Slack

                  Issue deployment