ICEBERG_TABLE_FILES

functionsupportedIceberg & external tables

docs.snowflake.com ↗

Table functions

Returns information about the data files registered to an externally managed Apache Iceberg™ table at a specified point in time.

Syntax

supportedpartialnot supportednot scored

ICEBERG_TABLE_FILES(
  TABLE_NAME => '<table_name>'
  [, AT => '<timestamp_ltz>']
)

Parameters

NameRequiredDescription
TABLE_NAME => 'table_name'requiredThe name of the externally managed Iceberg table for which you want to retrieve the data file information.
AT => 'timestamp_ltz'optionalSpecifies an exact date and time to use for retrieving the file information. The value must be explicitly cast to a TIMESTAMP_LTZ data type. For information, see Date & time data types. If not specified, the function returns information about the table files for the current snapshot. Note The AT argument isn’t supported for Parquet Direct tables. For Parquet Direct tables, the function returns the Parquet files that are currently registered to the table. To see the history of file registration, use ICEBERG_TABLE_FILE_REGISTRATION_HISTORY.

Output

The function returns the following columns: Column name | Data type | Description REGISTERED_ON | TIMESTAMP_LTZ | The timestamp of when the Parquet file was registered. FILE_NAME | TEXT | The full path to the registered file. FILE_SIZE | NUMBER | The size of the file (in bytes). ROW_COUNT | NUMBER | The number of rows in the file. ROW_COUNT_GROUP | NUMBER | The number of row groups in the file. MD5 | N/A | This field returns a placeholder value and should not be used. This field might be deprecated in a future release. ETAG | N/A | This field returns a placeholder value and should not be used. This field might be deprecated in a future release. LAST_MODIFIED_ON | N/A | This field returns a placeholder value and should not be used. This field might be deprecated in a future release. Note The ETAG, MD5, and LAST_MODIFIED_ON fields return a placeholder value and should not be used. These fields might be deprecated in a future release.

See also

Referenced by