Updates a function. You can compile a user-defined function (UDF) and call the update
method in SQL statements of MaxCompute to update the UDF.
Examples
function = o.get_function('test_function')
new_resource = o.get_resource('my_udf2.py')
function.class_type = 'my_udf2.Test'
function.resources = [new_resource, ]
function.update() # Update the function.
Related statements
- FUNCTION: If you do not need to store SQL functions in the metadata system of MaxCompute, you can create temporary SQL functions. These functions apply only to the current SQL script.
- CREATE FUNCTION: Creates a function. You can write a UDF and use the create_function() method of the entry object in SQL statements of MaxCompute to create the UDF.
- DELETE FUNCTION: Deletes a function. You can write a UDF and use the delete_function() method of the entry object in SQL statements of MaxCompute to delete the UDF.
- DROP FUNCTION: Deletes an existing UDF from a MaxCompute project.
- DESC FUNCTION: Views the information of a specified UDF in a MaxCompute project. The information includes the name, owner, creation time, class name, and resource list of the UDF.
- LIST FUNCTIONS: Views the information of all UDFs in a MaxCompute project.