Schema:

ORGANIZATION_USAGE

For guidance on query performance when using organization-wide usage views, see Performance (Organization Usage).

DATA_CLASSIFICATION_LATEST view

Important

This view is only available in the organization account. For more information, see Premium views in the organization account.

Organization Usage performance

When you query a specific view in the SNOWFLAKE.ORGANIZATION_USAGE schema, follow the organization-wide guidance in Performance (Organization Usage): bound every scan on history views, list columns explicitly, and use the time filter column table plus worked SQL and anti-patterns there.

This Organization Usage view displays one row for the most recent result of a classified table for each classified table. Each row corresponds to a different table.

Columns

Organization-level columns

Column NameData TypeDescription
ORGANIZATION_NAMEVARCHARName of the organization.
ACCOUNT_LOCATORVARCHARSystem-generated identifier for the account.
ACCOUNT_NAMEVARCHARUser-defined identifier for the account.

Additional columns

Column NameData TypeDescription
TABLE_IDNUMBERInternal/system-generated identifier for the table that was classified.
TABLE_NAMEVARCHARName of the table.
SCHEMA_IDNUMBERInternal/system-generated identifier for the schema that contains the table.
SCHEMA_NAMEVARCHARName of the schema that contains the table.
DATABASE_IDNUMBERInternal/system-generated identifier for the database that contains the table.
DATABASE_NAMEVARCHARName of the database that contains the table.
RESULTVARIANTLatest classification result. For a description of the JSON object, see the output of the SYSTEM$GET_CLASSIFICATION_RESULT function.
STATUSVARCHAROne of the following: CLASSIFIED or REVIEWED.
TRIGGER_TYPEVARCHARMode of the classification trigger: MANUAL or AUTO CLASSIFICATION, where MANUAL indicates that someone called a system function to initiate the classification process.
LAST_CLASSIFIED_ONTIMESTAMP_LTZTime when the table was last successfully classified.
LAST_CLASSIFICATION_ATTEMPTTIMESTAMP_LTZTimestamp of the last sensitive data classification attempt. If the value is greater than LAST_CLASSIFIED_ON, it indicates that the last sensitive data classification attempt resulted in a failure.
ERROR_MESSAGEVARCHARError message from the last sensitive data classification attempt, if it resulted in a failure.

Usage notes

  • Latency for the view may be up to 5 hours.
  • This view retains data for as long as the table exists.
  • A row in the view is removed when the following occur:
    • A table is dropped or renamed.
    • The table is reclassified.