createFileFormat

Last updated: January 27, 2026

Creates a new file format in Snowflake. File formats define how data files should be parsed when loading or unloading data.

Note: Automatic rollback drops the file format.

Available attributes

Attribute

Type

Description

Required

catalogName

String

Name of the catalog (database) where the file format will be created

No

schemaName

String

Name of the schema where the file format will be created

No

fileFormatName

String

Name of the file format to create

Yes

fileFormatType

String

Type: CSV, JSON, AVRO, ORC, PARQUET, XML, or CUSTOM

No

comment

String

Comment describing the file format

No

replaceIfExists

Boolean

Replace the file format if it already exists using OR REPLACE

No

alterIfExists

Boolean

Alter the file format if it already exists using ALTER IF EXISTS

No

ifNotExists

Boolean

Only create if the file format doesn't exist using IF NOT EXISTS*

No

temporary

Boolean

Create a temporary file format

No

* replaceIfExists, alterIfExists, and ifNotExists are mutually exclusive

formatTypeOptions attributes

Attribute

Type

Description

Required

key

String

Format-specific option name (e.g., COMPRESSION)

Yes

value

String

Option value

Yes

loading

loading

loading

loading