feat: remove the requirement that partition column must be PK (#4647)

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2024-08-31 03:16:01 +00:00
committed by GitHub
parent a37aeb2814
commit 68b59e0e5e
3 changed files with 6 additions and 61 deletions
+1 -1
View File
@@ -380,7 +380,7 @@ impl<'a> ParserContext<'a> {
Ok(options.into())
}
/// "PARTITION BY ..." clause
/// "PARTITION ON COLUMNS (...)" clause
fn parse_partitions(&mut self) -> Result<Option<Partitions>> {
if !self.parser.parse_keyword(Keyword::PARTITION) {
return Ok(None);