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

In OldPlanner, UDF open method can not be invoke when SQL is optimized

    XMLWordPrintableJSON

    Details

      Description

      For now, UDF open method can not be invoked when SQL is optimized. For example, a SQL as follow:

      SELECT MyUdf(1) as constantValue FROM MyTable
      

      MyUdf.open can not be invoked in OldPlanner.

      So, we can construct a constantFunctionContext or a constantRuntimeContext and invoke it just like BlinkPlanner.

        Attachments

          Activity

            People

            • Assignee:
              hailong wang hailong wang
              Reporter:
              hailong wang hailong wang
            • 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