目录

用户可以通过该接口创建、删除、更改或查询基础数据库、表、函数等。

Syntax

catalog

退货

Catalog

示例

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")