CREATE FUNCTION [db_name.]function_name AS class_name[USING JAR|FILE|ARCHIVE 'file_uri' [, JAR|FILE|ARCHIVE 'file_uri'] ];-- A function with the suffix name of _udtf will be recognized as a UDTF function.CREATE FUNCTION [db_name].function_udtf AS class_name[USING JAR|FILE|ARCHIVE 'file_uri' [, JAR|FILE|ARCHIVE 'file_uri'] ];
[db_name.]function_name: Function name. The namespace is specified to be in the database represented by db_name during function creation.class_name: Implementation class of the function.USING JAR|FILE|ARCHIVE 'file_uri': Path to resources used for function creation.CREATE FUNCTION `MYFUNC` AS 'myclass' USING JAR 'hdfs:///path/to/jar'CREATE FUNCTION `MYFUNC` AS 'myclass' USING JAR 'hdfs:///path/to/jar', FILE 'file:///usr/local/'
Feedback