pyspark.sql.Catalog.listCatalogs

Catalog.listCatalogs() → List[pyspark.sql.catalog.CatalogMetadata][source]

Returns a list of catalogs in this session.

New in version 3.4.0.

Returns
list

A list of CatalogMetadata.

Examples

>>> spark.catalog.listCatalogs()
[CatalogMetadata(name='spark_catalog', description=None)]