lei-jia-xing opened a new issue, #3035:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/3035
### Reproduction
With `sqlparser = "=0.64.0"`:
```rust
use sqlparser::{dialect::PostgreSqlDialect, parser::Parser};
fn main() {
let sql = "CREATE STATISTICS s ON a, b FROM t;";
match Parser::parse_sql(&PostgreSqlDialect {}, sql) {
Ok(statements) => println!("{statements:?}"),
Err(error) => println!("{error}"),
}
}
```
### Actual behavior
```text
sql parser error: Expected: an object type after CREATE, found: STATISTICS
at Line: 1, Column: 8
```
### Expected behavior
Parse the SQL as a single statement, with the statistics object name, target
table, and column list represented in the AST.
[PostgreSQL documentation for CREATE
STATISTICS](https://www.postgresql.org/docs/current/sql-createstatistics.html)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]