From 342013cf73db47792f9f06637ae8fbb796f703f9 Mon Sep 17 00:00:00 2001 From: Yoav Cohen Date: Thu, 5 Dec 2024 19:53:57 +0100 Subject: [PATCH] remove gating --- src/parser/mod.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 700e1eda3..ac76f6484 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -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 ] @@ -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 =