Share via


Catalog.GetFunction Method

Definition

Overloads

GetFunction(String)

Get the function with the specified name. If you are trying to get an in-built function then use the unqualified name.

GetFunction(String, String)

Get the function with the specified name. If you are trying to get an in-built function then pass null as the dbName.

GetFunction(String)

Get the function with the specified name. If you are trying to get an in-built function then use the unqualified name.

public Microsoft.Spark.Sql.Catalog.Function GetFunction (string functionName);
member this.GetFunction : string -> Microsoft.Spark.Sql.Catalog.Function
Public Function GetFunction (functionName As String) As Function

Parameters

functionName
String

Is either a qualified or unqualified name that designates a function. If no database identifier is provided, it refers to a temporary function or a function in the current database.

Returns

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

Applies to

GetFunction(String, String)

Get the function with the specified name. If you are trying to get an in-built function then pass null as the dbName.

public Microsoft.Spark.Sql.Catalog.Function GetFunction (string dbName, string functionName);
member this.GetFunction : string * string -> Microsoft.Spark.Sql.Catalog.Function
Public Function GetFunction (dbName As String, functionName As String) As Function

Parameters

dbName
String

Is a name that designates a database. Built-in functions will be in database null rather than default.

functionName
String

Is an unqualified name that designates a function in the specified database.

Returns

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

Applies to