EXTERNAL_TABLE_FILE_REGISTRATION_HISTORY

functionsupportedIceberg & external tables

docs.snowflake.com ↗

Information SchemaTable functions

This table function can be used to query information about the metadata history for an external table, including: - Files added or removed automatically as part of a metadata refresh. - Any errors found when refreshing the metadata.

Syntax

supportedpartialnot supportednot scored

EXTERNAL_TABLE_FILE_REGISTRATION_HISTORY (
      TABLE_NAME => '<string>'
      [, START_TIME => <constant_expr> ] )

Parameters

NameRequiredDescription
TABLE_NAME => 'string'requiredA string specifying an external table name.
START_TIME => constant_exproptionalTimestamp (in TIMESTAMP_LTZ format), within the last 30 days, marking the start of the time range for retrieving metadata update events. Note If no start time is specified, the function returns all update events within the last 30 days. If the start time falls outside the last 30 days, the function returns results within the last 30 days. If the start time is not a timestamp, it is ignored.

Usage notes

Output

The function returns the following columns: Column Name | Data Type | Description JOB_CREATED_TIME | TIMESTAMP_LTZ | Timestamp when the operation occurred FILE_NAME | TEXT | Name of the staged source file and relative path to the file OPERATION_STATUS | TEXT | Status: REGISTERED_NEW, REGISTERED_UPDATE, REGISTER_SKIPPED, REGISTER_FAILED, UNREGISTERED, or UNREGISTER_FAILED MESSAGE | TEXT | Message accompanying the operation status FILE_SIZE | NUMBER | Size of the file (in bytes) added to the external table LAST_MODIFIED | TIMESTAMP_LTZ | Timestamp when the file was last updated in the stage