pyspark.sql.Catalog.listFunctions

Catalog.listFunctions(dbName: Optional[str] = None) → List[pyspark.sql.catalog.Function][source]

Returns a list of functions registered in the specified database.

New in version 3.4.0.

Parameters
dbNamestr

name of the database to list the functions. dbName can be qualified with catalog name.

Returns
list

A list of Function.

Notes

If no database is specified, the current database and catalog are used. This API includes all temporary functions.

Examples

>>> spark.catalog.listFunctions()
[Function(name=...