---
title: catalog
description: "SparkSession.catalog property in PySpark: Interface through which the user may create, drop, alter, or query underlying databases, tables, functions, and more."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/sparksession/catalog
---

# catalog

Interface through which the user may create, drop, alter, or query underlying databases, tables, functions, and more.

## Syntax

```
catalog
```

## Returns

`Catalog`

## Examples

```python
spark.catalog

# Create a temp view, show the list, and drop it.
spark.range(1).createTempView("test_view")
spark.catalog.listTables()
# [Table(name='test_view', catalog=None, namespace=[], description=None, ...
spark.catalog.dropTempView("test_view")
```
