EXTERNAL_TABLE_FILES

functionsupportedIceberg & external tables

docs.snowflake.com ↗

Information SchemaTable functions

This table function can be used to query information about the staged data files included in the metadata for a specified external table.

Syntax

EXTERNAL_TABLE_FILES(
      TABLE_NAME => '<string>' )

Parameters

NameRequiredDescription
TABLE_NAME => 'string'requiredA string specifying an external table name.

Usage notes

Output

The function returns the following columns: Column Name | Data Type | Description FILE_NAME | TEXT | Name of source file and relative path to the staged file REGISTERED_ON | TIMESTAMP_LTZ | Timestamp when the file metadata was added to an external table (i.e. when the external table metadata was refreshed with the file details) FILE_SIZE | NUMBER | Size of the file (in bytes) LAST_MODIFIED | TIMESTAMP_LTZ | Timestamp when the file was last updated in the stage ETAG | HEX | ETag header for the file MD5 | HEX | MD5 checksum for the file