SYSTEM$READ_ICEBERG_TABLE_PROPERTY

functionsupportedIceberg & external tables

docs.snowflake.com ↗

System functions

Returns Iceberg table properties from the metadata file of a Snowflake-managed or externally managed Apache Iceberg™ table.

Syntax

supportedpartialnot supportednot scored

SYSTEM$READ_ICEBERG_TABLE_PROPERTY(
  '<table_name>'
  [ , '<property_name>' ]
)

Parameters

NameRequiredDescription
'table_name'requiredName of the Iceberg table. The table name is a string, so it must be enclosed in single quotes. If the name is fully qualified, such as '<db>.<schema>.<table_name>', enclose the entire name in single quotes, including the database and schema. If the name is case-sensitive or includes special characters or spaces, enclose it in double quotes inside the single quotes, for example '"<case_sensitive_table_name>"'.
'property_name'requiredOptional Iceberg property key. Property names are case-sensitive. When you specify a key, the function returns that property’s value, or NULL if the property isn’t present. When you omit this argument, the function returns every property as a JSON object string. Pass the result to PARSE_JSON to get a VARIANT. Don’t pass NULL: omit the argument.

Returns

A string. - One property: the property value, or NULL when that key isn’t in the metadata file. - All properties: a JSON object string, or '{}' when the table has no properties.

Usage notes