Vedin commented on code in PR #2004:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2004#discussion_r2298260257
##########
src/parser/mod.rs:
##########
@@ -4713,7 +4713,10 @@ impl<'a> Parser<'a> {
let create_view_params = self.parse_create_view_params()?;
if self.parse_keyword(Keyword::TABLE) {
self.parse_create_table(or_replace, temporary, global, transient)
- } else if self.parse_keyword(Keyword::MATERIALIZED) ||
self.parse_keyword(Keyword::VIEW) {
+ } else if self.parse_keyword(Keyword::MATERIALIZED)
+ || self.parse_keyword(Keyword::VIEW)
+ || (dialect_of!(self is SnowflakeDialect) &&
self.parse_keyword(Keyword::SECURE))
+ {
self.prev_token();
Review Comment:
Sure, done. snowflake dialect check was removed as well.
--
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]