current_catalog function (Databricks SQL)

Returns the current catalog.

Syntax

current_catalog()

Arguments

This function takes no argument.

Returns

A STRING.

Examples

> SELECT current_catalog();
 spark_catalog