Skip to main content
Returns the name of the current catalog. The catalog can be a database internal catalog or an external catalog that is mapped to an external data source. For more information about catalogs, see Catalog overview. If no catalog is selected, the database internal catalog default_catalog is returned.

Syntax

Parameters

This function does not require parameters.

Return value

Returns the name of the current catalog as a string.

Examples

Example 1: The current catalog is the database internal catalog default_catalog.
Example 2: The current catalog is an external catalog hudi_catalog.

See also

SET CATALOG: Switches to a destination catalog.