Skip to content

Commit 11b9dd2

Browse files
committed
Fix external table
1 parent 3a3e12b commit 11b9dd2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/parser/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4385,7 +4385,7 @@ impl<'a> Parser<'a> {
43854385
self.parse_create_view(or_replace, temporary, create_view_params)
43864386
} else if self.parse_keyword(Keyword::POLICY) {
43874387
self.parse_create_policy()
4388-
} else if self.parse_keyword(Keyword::EXTERNAL) {
4388+
} else if self.parse_keywords(&[Keyword::EXTERNAL, Keyword::TABLE]) {
43894389
self.parse_create_external_table(or_replace)
43904390
} else if self.parse_keyword(Keyword::FUNCTION) {
43914391
self.parse_create_function(or_replace, temporary)
@@ -5226,7 +5226,6 @@ impl<'a> Parser<'a> {
52265226
&mut self,
52275227
or_replace: bool,
52285228
) -> Result<Statement, ParserError> {
5229-
self.expect_keyword_is(Keyword::TABLE)?;
52305229
let if_not_exists = self.parse_keywords(&[Keyword::IF, Keyword::NOT, Keyword::EXISTS]);
52315230
let table_name = self.parse_object_name(false)?;
52325231
let (columns, constraints) = self.parse_columns()?;

0 commit comments

Comments
 (0)