Skip to content

Commit

Permalink
remove gating
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavcloud committed Dec 5, 2024
1 parent 4e2c42c commit 342013c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7273,9 +7273,7 @@ impl<'a> Parser<'a> {
let if_exists = self.parse_keywords(&[Keyword::IF, Keyword::EXISTS]);
let name = self.parse_identifier(false)?;
AlterTableOperation::DropProjection { if_exists, name }
} else if dialect_of!(self is SnowflakeDialect | GenericDialect)
&& self.parse_keywords(&[Keyword::CLUSTERING, Keyword::KEY])
{
} else if self.parse_keywords(&[Keyword::CLUSTERING, Keyword::KEY]) {
AlterTableOperation::DropClusteringKey
} else {
let _ = self.parse_keyword(Keyword::COLUMN); // [ COLUMN ]
Expand Down Expand Up @@ -7448,20 +7446,14 @@ impl<'a> Parser<'a> {
partition,
with_name,
}
} else if dialect_of!(self is SnowflakeDialect | GenericDialect)
&& self.parse_keywords(&[Keyword::CLUSTER, Keyword::BY])
{
} else if self.parse_keywords(&[Keyword::CLUSTER, Keyword::BY]) {
self.expect_token(&Token::LParen)?;
let exprs = self.parse_comma_separated(|parser| parser.parse_expr())?;
self.expect_token(&Token::RParen)?;
AlterTableOperation::ClusterBy { exprs }
} else if dialect_of!(self is SnowflakeDialect | GenericDialect)
&& self.parse_keywords(&[Keyword::SUSPEND, Keyword::RECLUSTER])
{
} else if self.parse_keywords(&[Keyword::SUSPEND, Keyword::RECLUSTER]) {
AlterTableOperation::SuspendRecluster
} else if dialect_of!(self is SnowflakeDialect | GenericDialect)
&& self.parse_keywords(&[Keyword::RESUME, Keyword::RECLUSTER])
{
} else if self.parse_keywords(&[Keyword::RESUME, Keyword::RECLUSTER]) {
AlterTableOperation::ResumeRecluster
} else {
let options: Vec<SqlOption> =
Expand Down

0 comments on commit 342013c

Please sign in to comment.