- Schema:
ICEBERG_ ORPHAN_ FILE_ CANDIDATES_ HISTORY view¶
Use this Account Usage view to query the orphan file candidates that Snowflake detected for Snowflake-managed Apache Iceberg™ tables in your account within the last 365 days (1 year). Each row represents one orphan file candidate that was detected in one detection run, along with the latest action that Snowflake took on the file.
Note
This view contains data only if you enabled orphan file deletion for your account. For more information, see Orphan file deletion for Snowflake-managed Iceberg tables.
Columns¶
| Column name | Data type | Description |
|---|---|---|
| EVENT_TIMESTAMP | TIMESTAMP_LTZ | Time of the detection run that found the file. Matches EVENT_TIMESTAMP for the run in the ICEBERG_ORPHAN_FILE_DETECTION_HISTORY view view. |
| CLONE_GROUP_ID | NUMBER | Identifier of the clone group that the file belongs to. A table and its clones share the same storage and the same clone group. |
| TABLE_NAME | VARCHAR | Name of the table that is the source of the clone group. |
| SCHEMA_ID | NUMBER | Internal, system-generated identifier of the schema that contains the table. |
| SCHEMA_NAME | VARCHAR | Name of the schema that contains the table. |
| DATABASE_ID | NUMBER | Internal, system-generated identifier of the database that contains the table. |
| DATABASE_NAME | VARCHAR | Name of the database that contains the table. |
| FILE_PATH | VARCHAR | Full cloud storage path of the orphan file. |
| FILE_SIZE_BYTES | NUMBER | Size of the file in bytes. |
| FILE_LAST_MODIFIED_TIME | TIMESTAMP_LTZ | Time that the file was last modified in cloud storage. |
| LISTING_RUN_START_TIME | TIMESTAMP_LTZ | Start time of the storage listing in which Snowflake observed the file. |
| STATUS | VARCHAR | Latest action that Snowflake took on the file. Possible values:
|
| MESSAGE | VARCHAR | Reason that Snowflake skipped the file. NULL unless STATUS is
|
| STATUS_TIME | TIMESTAMP_LTZ | Time that the file reached its current status. NULL when STATUS is REPORTED. |
Usage notes¶
- STATUS, MESSAGE, and STATUS_TIME describe the latest action on the file, not the action in a specific run. If Snowflake detected the same file in more than one run, every row for the file shows the same values for these columns.
- To see the detection run that found a file, join this view with the ICEBERG_ORPHAN_FILE_DETECTION_HISTORY view view on EVENT_TIMESTAMP.
- The view contains data for the last 365 days.
- The USAGE_VIEWER role is granted the SELECT privilege on this view. For more information, see SNOWFLAKE database roles.