Ritakang0451 commented on issue #1684:
URL: 
https://github.com/apache/incubator-linkis/issues/1684#issuecomment-1066116312


   Solution:
   When the UDF module is viewed for the first time, the system will 
automatically initialize the directory of system functions in linkis_ udf_ In 
the tree table, find that name is "system function", category is the record of 
UDF, and get the ID. (in case of method function, category is function)
   In linkis_ In the UDF table, insert a record, such as insert into
   linkis_udf
   
   
(id,create_user,udf_name,udf_type,path,register_format,use_format,description,is_expire,is_shared,tree_id,create_time,update_time)
 VALUES (0,'sys','abs',0,'','','Column abs(Column e)','Computes the absolute 
value',false,false,29,now(),now()); 
   Where, tree_ The ID must be the ID obtained in the previous step. udf_ Type 
is a number, jar package UDF is 0, Python is 1, Scala UDF is 2, python method 
function is 3, Scala method function is 4, path is jar package or function 
script path, register_ Format is the function registration statement (to be 
executed during engine initialization)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@linkis.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@linkis.apache.org
For additional commands, e-mail: dev-h...@linkis.apache.org

Reply via email to