Schema:

ACCOUNT_USAGE

FILE_FORMATS view

This Account Usage view displays a row for each file format defined in the account.

File formats are named objects that can be used for loading/unloading data. For more information, see CREATE FILE FORMAT.

Columns

Column NameData TypeDescription
FILE_FORMAT_IDNUMBERInternal/system-generated identifier for the file format.
FILE_FORMAT_NAMEVARCHARName of the file format,
FILE_FORMAT_SCHEMA_IDNUMBERInternal/system-generated identifier for the schema of the file format.
FILE_FORMAT_SCHEMAVARCHARSchema that the file format belongs to.
FILE_FORMAT_CATALOG_IDNUMBERInternal/system-generated identifier for the database of the file format.
FILE_FORMAT_CATALOGVARCHARDatabase that the file format belongs to.
FILE_FORMAT_OWNERVARCHARName of the role that owns the file format.
FILE_FORMAT_TYPEVARCHARFile format type of the file format (CSV, JSON, etc.).
RECORD_DELIMITERVARCHARCharacter that separates records.
FIELD_DELIMITERVARCHARCharacter that separates fields.
SKIP_HEADERNUMBERNumber of lines skipped at the start of the file.
DATE_FORMATVARCHARDate format.
TIME_FORMATVARCHARTime format.
TIMESTAMP_FORMATVARCHARTimestamp format.
BINARY_FORMATVARCHARBinary format.
ESCAPEVARCHARString used as the escape character for any field values.
ESCAPE_UNENCLOSED_FIELDVARCHARString used as the escape character for unenclosed field values.
TRIM_SPACEBOOLEANWhether whitespace is removed from fields.
FIELD_OPTIONALLY_ENCLOSED_BYVARCHARCharacter used to enclose strings.
NULL_IFVARCHARA list of strings to be replaced by null.
COMPRESSIONVARCHARCompression method for the data file.
ERROR_ON_COLUMN_COUNT_MISMATCHVARCHARWhether to generate a parsing error if the number of fields in an input file does not match the number of columns in the corresponding table.
CREATEDTIMESTAMP_LTZDate and time when the file format was created.
LAST_ALTEREDTIMESTAMP_LTZDate and time the object was last altered by a DML, DDL, or background metadata operation. See Usage Notes.
DELETEDTIMESTAMP_LTZDate and time when the file format was dropped.
COMMENTVARCHARComment for the file format.
OWNER_ROLE_TYPEVARCHARThe type of role that owns the object, for example ROLE.
If a Snowflake Native App owns the object, the value is APPLICATION.
Snowflake returns NULL if you delete the object because a deleted object does not have an owner role.

Usage notes

  • Latency for the view may be up to 120 minutes (2 hours).
  • The view only displays objects for which the current role for the session has been granted access privileges.
  • 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.
  • The LAST_ALTERED column is updated when the following operations are performed on an object:

    • DDL operations.
    • DML operations (for tables only). This column is updated even when no rows are affected by the DML statement.
    • Background maintenance operations on metadata performed by Snowflake.