mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-21 22:44:08 +00:00
BigQuery: Add support for CREATE SCHEMA
options (#1742)
This commit is contained in:
parent
862e887a66
commit
f81aed6359
4 changed files with 57 additions and 6 deletions
|
@ -4208,6 +4208,11 @@ fn parse_create_schema() {
|
|||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
|
||||
verified_stmt(r#"CREATE SCHEMA a.b.c OPTIONS(key1 = 'value1', key2 = 'value2')"#);
|
||||
verified_stmt(r#"CREATE SCHEMA IF NOT EXISTS a OPTIONS(key1 = 'value1')"#);
|
||||
verified_stmt(r#"CREATE SCHEMA IF NOT EXISTS a OPTIONS()"#);
|
||||
verified_stmt(r#"CREATE SCHEMA IF NOT EXISTS a DEFAULT COLLATE 'und:ci' OPTIONS()"#);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue