get_function {catalog}R Documentation

Get A Function

Description

Get the function with the specified name.

Usage

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

## Not run: 
sc <- sparklyr::spark_connect(master = "local")
get_function(sc = sc, fn = "Not")

## End(Not run)


[Package catalog version 0.1.1 Index]