Schema:

ORGANIZATION_USAGE

COLUMNS view

Important

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

This Organization Usage view displays a row for each column in the tables defined in an account.

See also:

DATABASES view

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

ColumnData TypeDescription
COLUMN_IDNUMBERInternal/system-generated identifier for the column.
COLUMN_NAMETEXTName of the column.
TABLE_IDNUMBERInternal/system-generated identifier for the table or view for the column.
TABLE_NAMETEXTTable or view that the column belongs to.
TABLE_SCHEMA_IDNUMBERInternal/system-generated identifier for the schema of the table or view for the column.
TABLE_SCHEMATEXTSchema that the table or view belongs to.
TABLE_CATALOG_IDNUMBERInternal/system-generated identifier for the database of the table or view for the column.
TABLE_CATALOGTEXTDatabase that the table or view belongs to.
ORDINAL_POSITIONNUMBEROrdinal position of the column in the table/view.
COLUMN_DEFAULTTEXTDefault value of the column.
IS_NULLABLETEXTWhether the column allows NULL values.
DATA_TYPETEXT

Data type of the column.

This column shows the standard Snowflake data type of the column. The DATA_TYPE_ALIAS column displays the original data type name that was specified for the column when the table was created, or when the column was altered.

CHARACTER_MAXIMUM_LENGTHNUMBERMaximum length in characters of string columns.
CHARACTER_OCTET_LENGTHNUMBERMaximum length in bytes of string columns.
NUMERIC_PRECISIONNUMBERNumeric precision of numeric columns.
NUMERIC_PRECISION_RADIXNUMBERRadix of precision of numeric columns.
NUMERIC_SCALENUMBERScale of numeric columns.
DATETIME_PRECISIONNUMBERNot applicable for Snowflake.
INTERVAL_TYPETEXTNot applicable for Snowflake.
INTERVAL_PRECISIONTEXTNot applicable for Snowflake.
CHARACTER_SET_CATALOGTEXTNot applicable for Snowflake.
CHARACTER_SET_SCHEMATEXTNot applicable for Snowflake.
CHARACTER_SET_NAMETEXTNot applicable for Snowflake.
COLLATION_CATALOGTEXTNot applicable for Snowflake.
COLLATION_SCHEMATEXTNot applicable for Snowflake.
COLLATION_NAMETEXTNot applicable for Snowflake.
DOMAIN_CATALOGTEXTNot applicable for Snowflake.
DOMAIN_SCHEMATEXTNot applicable for Snowflake.
DOMAIN_NAMETEXTNot applicable for Snowflake.
UDT_CATALOGTEXTNot applicable for Snowflake.
UDT_SCHEMATEXTNot applicable for Snowflake.
UDT_NAMETEXTNot applicable for Snowflake.
SCOPE_CATALOGTEXTNot applicable for Snowflake.
SCOPE_SCHEMATEXTNot applicable for Snowflake.
SCOPE_NAMETEXTNot applicable for Snowflake.
MAXIMUM_CARDINALITYTEXTNot applicable for Snowflake.
DTD_IDENTIFIERTEXTNot applicable for Snowflake.
IS_SELF_REFERENCINGTEXTNot applicable for Snowflake.
IS_IDENTITYTEXTWhether the column is an identity column.
IDENTITY_GENERATIONTEXTWhether an identity column’s value is always generated or only generated by default. Snowflake only supports BY DEFAULT.
IDENTITY_STARTTEXTNot applicable for Snowflake.
IDENTITY_INCREMENTTEXTNot applicable for Snowflake.
IDENTITY_MAXIMUMTEXTNot applicable for Snowflake.
IDENTITY_MINIMUMTEXTNot applicable for Snowflake.
IDENTITY_CYCLETEXTWhether the value of an identity column allows cycling. Snowflake only supports NO CYCLE.
IDENTITY_ORDEREDTEXTIf YES, the column is an identity column and has the ORDER property. If NO, the column is an identity column and has the NOORDER property.
SCHEMA_EVOLUTION_RECORDTEXT

Records information about the latest triggered Schema Evolution for a given table column. This column contains the following subfields:

  • EvolutionType: The type of the triggered schema evolution (ADD_COLUMN or DROP_NOT_NULL).
  • EvolutionMode: The triggering ingestion mechanism (COPY, SNOWPIPE, or SNOWPIPE_STREAMING).
  • FileName: The file name that triggered the evolution (NULL for SNOWPIPE_STREAMING).
  • TriggeringTime: The approximate time when the column was evolved.
  • QueryId or PipeId: A unique identifier of the triggering query or pipe (QUERY ID for COPY, PIPE ID for SNOWPIPE, or NULL for SNOWPIPE_STREAMING).
  • Pipe name: Fully qualified pipe name that triggered schema evolution (SNOWPIPE_STREAMING only).
  • Channel name: Channel that triggered schema evolution (SNOWPIPE_STREAMING only).
  • offsetTokenUpperBound: An offset at or before which schema evolution was triggered (SNOWPIPE_STREAMING only).
COMMENTTEXTComment for the column.
DELETEDTIMESTAMP_LTZDate and time when the column was deleted.
DATA_TYPE_ALIASTEXT

The data type alias or synonym specified for the column when the table was created or when the column was last altered.

For example, the BIGINT type is synonymous with the NUMBER type. If BIGINT was specified as the type for a column, then BIGINT is displayed in this DATA_TYPE_ALIAS column.

For columns in tables that were created before the 2025_07 behavior change bundle was enabled, and not altered after the behavior change, the value in this column is NULL. For more information, see COLUMNS view (multiple schemas): New column.

Usage notes

  • Latency for the view may be up to 24 hours.
  • The view does not recognize the MANAGE GRANTS privilege and consequently may show less information compared to a SHOW command executed by a user who holds the MANAGE GRANTS privilege.

Examples

The following example retrieves all columns in the myTable table defined in the mydb database:

SELECT *
  FROM snowflake.organization_usage.columns
  WHERE
    table_catalog = 'mydb' AND
    table_name = 'myTable' AND
    deleted IS NULL;