br-lewis opened a new issue, #2070: URL: https://github.com/apache/datafusion-sqlparser-rs/issues/2070
The Snowflake dialect doesn't support DDL commands for [File Format](https://docs.snowflake.com/en/sql-reference/sql/create-file-format). Running ``` let sql = "CREATE FILE FORMAT my_file_format"; let dialect = SnowflakeDialect {}; let ast = Parser::parse_sql(&dialect, sql).unwrap(); ``` Results in ``` thread 'main' panicked at src/main.rs:7:48: called `Result::unwrap()` on an `Err` value: ParserError("Expected: an object type after CREATE, found: FILE at Line: 1, Column: 8") ``` I could try adding it myself but I wanted to check first since there's already a [`FileFormat`](https://github.com/apache/datafusion-sqlparser-rs/blob/main/src/ast/mod.rs#L7341-L7353) in the ast module. It looks to be meant for something else in the other dialects so should I expand that or implement a snowflake specific one? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
