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.

    • The returned function body is provided in pseudocode​ and is not intended for direct execution.
    • For function views created from a .dom module file, this column only displays the function name, not 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