SYSTEM$GET_ICEBERG_TABLE_INFORMATION

functionsupportedIceberg & external tables

docs.snowflake.com ↗

System functions

Returns the location of the root metadata file and status of the latest snapshot for an Apache Iceberg™ table. The SYSTEM$GET_ICEBERG_TABLE_INFORMATION function works differently according to table type: - For Snowflake-managed Iceberg tables or Delta-based tables, calling the function generates metadata for data manipulation language (DML) operations or other table updates that have occurred since Snowflake last generated metadata for the table. If there are no updates, the function returns the location of the latest metadata file, but does not generate new metadata. - For other externally managed Iceberg tables, the function returns information about the latest refreshed snapshot.

Syntax

SYSTEM$GET_ICEBERG_TABLE_INFORMATION('<iceberg_table_name>')

Parameters

NameRequiredDescription
'iceberg_table_name'requiredThe name of the Iceberg table for which you want to retrieve information. The table name is a string, so it must be enclosed in single quotes. If the Iceberg table name is fully qualified, such as '<db>.<schema>.<iceberg_table_name>', the entire name must be enclosed in single quotes, including the database and schema. If the Iceberg table name is case-sensitive or includes any special characters or spaces, double quotes are required to process the case/characters. The double quotes must be enclosed within the single quotes, for example, '"<case_sensitive_iceberg_table_name>"'.

Returns

The function returns a JSON object containing the following name/value pairs: {"metadataLocation":"<value>","status":"<value>"} Where:

Usage notes