sabir-akhadov-localstack commented on code in PR #2388:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2388#discussion_r3578259716
##########
src/ast/mod.rs:
##########
@@ -4536,6 +4536,23 @@ pub enum Statement {
comment: Option<String>,
},
/// ```sql
+ /// CREATE [ OR REPLACE ] WAREHOUSE [ IF NOT EXISTS ] <name>
+ /// [ [ WITH ] <property> = <value> [ ... ] ]
+ /// ```
+ /// Snowflake-specific statement to create a virtual warehouse.
+ ///
+ /// See <https://docs.snowflake.com/en/sql-reference/sql/create-warehouse>
+ CreateWarehouse {
+ /// `OR REPLACE` flag.
+ or_replace: bool,
+ /// `IF NOT EXISTS` flag.
+ if_not_exists: bool,
+ /// Warehouse name.
+ name: ObjectName,
+ /// Warehouse properties and parameters (e.g. `WAREHOUSE_SIZE =
'XSMALL'`).
+ options: KeyValueOptions,
+ },
Review Comment:
Done in 3fc58f5 — moved to a named `CreateWarehouse` struct following the
`CreateUser` pattern (struct + `Display` + `From<CreateWarehouse> for
Statement`).
--
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]