getFunctionViews

Syntax

getFunctionViews()

Details

When this function is executed by an administrator, it returns all the function views. When executed by a user with VIEW_OWNER permission, it only returns the function views created by the user.

Parameters

None

Returns

A table with four columns:

  • name: The function name.

  • body: The function body. For function views that are directly wrapped by a dom module, or created by wrapping functions after loading a dom module using use <moduleName>, this field displays only the function name rather than the function body.

  • owner: The creator of the function view.

    createTime: The creation time of the function view.

Examples

def myFunc(){
    print "myFunc"
}

addFunctionView(udf=myFunc)
getFunctionViews()
name body owner createTime
myFunc def myFunc(){ print("myFunc") } admin 2026.02.02 11:10:54.114

Related Function: addFunctionView