SYSTEM$LIST_ICEBERG_TABLES_FROM_CATALOG

functionsupportedIceberg & external tables

docs.snowflake.com ↗

System functions

Lists tables in a remote Apache Iceberg™ REST catalog (including Snowflake Open Catalog).

Syntax

supportedpartialnot supportednot scored

SYSTEM$LIST_ICEBERG_TABLES_FROM_CATALOG( '<catalog_integration_name>'
  [ , '<parent_namespace>', <levels> ] )

Parameters

NameRequiredDescription
catalog_integration_namerequiredIdentifier for the catalog integration for Iceberg REST or Snowflake Open Catalog.
parent_namespaceoptionalThe identifier of the namespace from which to start listing tables. To retrieve results for the 0th namespace level in the catalog, specify an empty string (''). Default: The default namespace for the catalog integration (CATALOG_NAMESPACE), if specified. If you don’t specify a default namespace at the catalog integration level, the default is the 0th namespace level in the catalog. To list tables when the default is the 0th namespace, you must specify an empty string (CATALOG_NAMESPACE) and the <levels> parameter.
levelsoptionalSpecifies the number of levels to traverse in the namespace hierarchy for listing tables. For example: If set to 0, the function returns all of the tables recursively, relative to the parent_namespace. If set to 1, the function returns all of the tables within the parent_namespace. If set to n, the function returns tables up to n levels deep, relative to the parent_namespace. Default: 1

Returns

Returns a JSON-formatted string which lists tables in the Iceberg REST catalog for the specified namespace and number of levels. The JSON-formatted string has the following structure:

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes USAGE | Integration (catalog) | For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

See also

Referenced by