BigQuery: Add support for CREATE SCHEMA options (#1742)

This commit is contained in:
Ifeanyi Ubah 2025-03-14 08:00:19 +01:00 committed by GitHub
parent 862e887a66
commit f81aed6359
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 57 additions and 6 deletions

View file

@ -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]