Skip to content

Commit 342013c

Browse files
committed
remove gating
1 parent 4e2c42c commit 342013c

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/parser/mod.rs

+4-12
Original file line numberDiff line numberDiff line change
@@ -7273,9 +7273,7 @@ impl<'a> Parser<'a> {
72737273
let if_exists = self.parse_keywords(&[Keyword::IF, Keyword::EXISTS]);
72747274
let name = self.parse_identifier(false)?;
72757275
AlterTableOperation::DropProjection { if_exists, name }
7276-
} else if dialect_of!(self is SnowflakeDialect | GenericDialect)
7277-
&& self.parse_keywords(&[Keyword::CLUSTERING, Keyword::KEY])
7278-
{
7276+
} else if self.parse_keywords(&[Keyword::CLUSTERING, Keyword::KEY]) {
72797277
AlterTableOperation::DropClusteringKey
72807278
} else {
72817279
let _ = self.parse_keyword(Keyword::COLUMN); // [ COLUMN ]
@@ -7448,20 +7446,14 @@ impl<'a> Parser<'a> {
74487446
partition,
74497447
with_name,
74507448
}
7451-
} else if dialect_of!(self is SnowflakeDialect | GenericDialect)
7452-
&& self.parse_keywords(&[Keyword::CLUSTER, Keyword::BY])
7453-
{
7449+
} else if self.parse_keywords(&[Keyword::CLUSTER, Keyword::BY]) {
74547450
self.expect_token(&Token::LParen)?;
74557451
let exprs = self.parse_comma_separated(|parser| parser.parse_expr())?;
74567452
self.expect_token(&Token::RParen)?;
74577453
AlterTableOperation::ClusterBy { exprs }
7458-
} else if dialect_of!(self is SnowflakeDialect | GenericDialect)
7459-
&& self.parse_keywords(&[Keyword::SUSPEND, Keyword::RECLUSTER])
7460-
{
7454+
} else if self.parse_keywords(&[Keyword::SUSPEND, Keyword::RECLUSTER]) {
74617455
AlterTableOperation::SuspendRecluster
7462-
} else if dialect_of!(self is SnowflakeDialect | GenericDialect)
7463-
&& self.parse_keywords(&[Keyword::RESUME, Keyword::RECLUSTER])
7464-
{
7456+
} else if self.parse_keywords(&[Keyword::RESUME, Keyword::RECLUSTER]) {
74657457
AlterTableOperation::ResumeRecluster
74667458
} else {
74677459
let options: Vec<SqlOption> =

0 commit comments

Comments
 (0)