currentDatabase

返回此会话中的当前默认数据库。

Syntax

currentDatabase()

退货

str

当前默认数据库名称。

示例

spark.catalog.currentDatabase()
# 'default'