Skip to content

Snowflake: Add support for CREATE FILE FORMAT#2336

Open
ramnes wants to merge 1 commit intoapache:mainfrom
formalco:ramnes/snowflake-file
Open

Snowflake: Add support for CREATE FILE FORMAT#2336
ramnes wants to merge 1 commit intoapache:mainfrom
formalco:ramnes/snowflake-file

Conversation

@ramnes
Copy link
Copy Markdown

@ramnes ramnes commented May 8, 2026

This PR adds a Statement::CreateFileFormat variant and parses the full grammar:

CREATE [ OR REPLACE ] [ { TEMP | TEMPORARY | VOLATILE } ] FILE FORMAT [ IF NOT EXISTS ] <name> [formatTypeOptions ] [ COMMENT = '<string>' ]

Format options are stored as KeyValueOptions, with COMMENT split out into its own Option<String> field to match CREATE STAGE. IDENTIFIER(?) style names are handled via parse_object_name(true).

Closes #2070

This PR adds a `Statement::CreateFileFormat` variant and parses the full grammar:

`CREATE [ OR REPLACE ] [ { TEMP | TEMPORARY | VOLATILE } ] FILE FORMAT [ IF NOT EXISTS ] <name> [ formatTypeOptions ] [ COMMENT = '<string>' ]`

Format options are stored as `KeyValueOptions`, with `COMMENT` split out into its own `Option<String>` field to match `CREATE STAGE`. `IDENTIFIER(?)` style names are handled via `parse_object_name(true)`.

Closes apache#2070.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Snowflake File Format not supported.

1 participant