Add support of parsing ON CLUSTER in ALTER TABLE for ClickHouse (#1342)

This commit is contained in:
hulk 2024-07-31 04:31:42 +08:00 committed by GitHub
parent f96658006f
commit cc13841a37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 67 additions and 21 deletions

View file

@ -1976,6 +1976,7 @@ fn parse_alter_table_add_column() {
only,
operations,
location: _,
on_cluster: _,
} => {
assert_eq!(name.to_string(), "tab");
assert!(!if_exists);
@ -2005,6 +2006,7 @@ fn parse_alter_table_add_column() {
only,
operations,
location: _,
on_cluster: _,
} => {
assert_eq!(name.to_string(), "tab");
assert!(!if_exists);
@ -2042,6 +2044,7 @@ fn parse_alter_table_add_columns() {
only,
operations,
location: _,
on_cluster: _,
} => {
assert_eq!(name.to_string(), "tab");
assert!(!if_exists);