- Schema:
ICEBERG_ ORPHAN_ FILE_ DETECTION_ HISTORY view¶
Use this Account Usage view to query the orphan file detection runs for Snowflake-managed Apache Iceberg™ tables in your account within the last 365 days (1 year). Each row represents one detection run, with summary statistics for that run.
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. |
| ORPHAN_FILE_COUNT | NUMBER | Number of orphan file candidates that the run identified. |
| TABLES_WITH_ORPHANS | NUMBER | Number of clone groups that have at least one orphan file candidate in the run. A table and its clones count as one. |
| TOTAL_ORPHAN_FILE_SIZE_BYTES | NUMBER | Total size, in bytes, of the orphan file candidates that the run identified. |
Usage notes¶
- To see the individual files in a run, query the ICEBERG_ORPHAN_FILE_CANDIDATES_HISTORY view view and join 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.