Skip to content

Commit

Permalink
chore: minor changes to show cluster syntax (#10932)
Browse files Browse the repository at this point in the history
  • Loading branch information
yezizp2012 authored and yezizp2012 committed Jul 14, 2023
1 parent 093e400 commit 9ef8ae6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sqlparser/src/ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ impl fmt::Display for ShowObject {
ShowObject::Function { schema } => write!(f, "FUNCTIONS{}", fmt_schema(schema)),
ShowObject::Indexes { table } => write!(f, "INDEXES FROM {}", table),
ShowObject::Cluster => {
write!(f, "CLUSTERS")
write!(f, "CLUSTER")
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/sqlparser/src/keywords.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ define_keywords!(
CLOB,
CLOSE,
CLUSTER,
CLUSTERS,
COALESCE,
COLLATE,
COLLATION,
Expand Down
2 changes: 1 addition & 1 deletion src/sqlparser/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3796,7 +3796,7 @@ impl Parser {
return self.expected("from after indexes", self.peek_token());
}
}
Keyword::CLUSTERS => {
Keyword::CLUSTER => {
return Ok(Statement::ShowObjects(ShowObject::Cluster));
}
_ => {}
Expand Down

0 comments on commit 9ef8ae6

Please sign in to comment.