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

Add advanced function DDL syntax "USING JAR"

    XMLWordPrintableJSON

Details

    • Hide
      In 1.16, we introduced the `CREATE FUNCTION ... USING JAR` syntax to support the dynamic loading of the UDF jar in per job, which is convenient for platform developers to easily achieve UDF management. In addition, we also port the `ADD JAR` syntax from SqlClient to `TableEnvironment` side, this allows the syntax is more general to Table API users. However, due to inconsistent classloader in StreamExecutionEnvironment and TableEnvironment, the `ADD JAR` syntax is not available for Table API program currently, it will be resolved by https://issues.apache.org/jira/browse/FLINK-29240.



      More information about this feature could be found in https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/sql/create/#create-function.
      Show
      In 1.16, we introduced the `CREATE FUNCTION ... USING JAR` syntax to support the dynamic loading of the UDF jar in per job, which is convenient for platform developers to easily achieve UDF management. In addition, we also port the `ADD JAR` syntax from SqlClient to `TableEnvironment` side, this allows the syntax is more general to Table API users. However, due to inconsistent classloader in StreamExecutionEnvironment and TableEnvironment, the `ADD JAR` syntax is not available for Table API program currently, it will be resolved by https://issues.apache.org/jira/browse/FLINK-29240 . More information about this feature could be found in https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/sql/create/#create-function .

    Description

      As FLIP-214  propose, this ticket is to support dynamically loading functions from external source in function DDL with advanced syntax like:

       

      CREATE [TEMPORARY|TEMPORARY SYSTEM] FUNCTION [IF NOT EXISTS] [catalog_name.db_name.]function_name AS class_name [LANGUAGE JAVA|SCALA|PYTHON] [USING JAR‘resource_path’ [, JAR ‘resource_path’]*]; 

      Attachments

        Issue Links

          Activity

            People

              lsy dalongliu
              phoenixjiangnan Bowen Li
              Votes:
              1 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: