current_catalog function

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime

Returns the current catalog.

Syntax

current_catalog()

Arguments

This function takes no argument.

Returns

A STRING.

Examples

> SELECT current_catalog();
 spark_catalog