mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-23 11:12:51 +00:00
Support optional table for ANALYZE statement (#1599)
This commit is contained in:
parent
6523dabcf8
commit
eae5629fb8
4 changed files with 16 additions and 2 deletions
|
|
@ -851,7 +851,7 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
|
||||
pub fn parse_analyze(&mut self) -> Result<Statement, ParserError> {
|
||||
self.expect_keyword(Keyword::TABLE)?;
|
||||
let has_table_keyword = self.parse_keyword(Keyword::TABLE);
|
||||
let table_name = self.parse_object_name(false)?;
|
||||
let mut for_columns = false;
|
||||
let mut cache_metadata = false;
|
||||
|
|
@ -896,6 +896,7 @@ impl<'a> Parser<'a> {
|
|||
}
|
||||
|
||||
Ok(Statement::Analyze {
|
||||
has_table_keyword,
|
||||
table_name,
|
||||
for_columns,
|
||||
columns,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue