mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-15 00:09:02 +00:00
BigQuery: support of CREATE VIEW IF NOT EXISTS (#1118)
This commit is contained in:
parent
8fae601743
commit
60baea4ae7
2 changed files with 31 additions and 1 deletions
|
@ -3482,7 +3482,7 @@ impl<'a> Parser<'a> {
|
|||
) -> Result<Statement, ParserError> {
|
||||
let materialized = self.parse_keyword(Keyword::MATERIALIZED);
|
||||
self.expect_keyword(Keyword::VIEW)?;
|
||||
let if_not_exists = dialect_of!(self is SQLiteDialect|GenericDialect)
|
||||
let if_not_exists = dialect_of!(self is BigQueryDialect|SQLiteDialect|GenericDialect)
|
||||
&& self.parse_keywords(&[Keyword::IF, Keyword::NOT, Keyword::EXISTS]);
|
||||
// Many dialects support `OR ALTER` right after `CREATE`, but we don't (yet).
|
||||
// ANSI SQL and Postgres support RECURSIVE here, but we don't support it either.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue