get_function: Get A Function

Description Usage Arguments Details Value See Also Examples

View source: R/functions.R

Description

Get the function with the specified name.

Usage

1
get_function(sc, fn, database = NULL)

Arguments

sc

A spark_connection.

fn

character(1). The name of the function.

database

character(1). The name of the database for which the functions should be listed (default: NULL).

Details

If you are trying to get an in-built function then use the unqualified name and pass NULL as the database name.

Value

A spark_jobj which includes the class name, database, description, whether it is temporary and the name of the function.

See Also

function_exists(), list_functions()

Examples

1
2
3
4
5
## Not run: 
sc <- sparklyr::spark_connect(master = "local")
get_function(sc = sc, fn = "Not")

## End(Not run)

catalog documentation built on March 20, 2021, 5:06 p.m.