mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-26 00:44:12 +00:00
Add support of parsing ON CLUSTER in ALTER TABLE for ClickHouse (#1342)
This commit is contained in:
parent
f96658006f
commit
cc13841a37
8 changed files with 67 additions and 21 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue