You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PostgreSqlDialect rejects PostgreSQL's CREATE STATISTICS statement for defining extended statistics on a table. #3035
use sqlparser::{dialect::PostgreSqlDialect, parser::Parser};fnmain(){let sql = "CREATE STATISTICS s ON a, b FROM t;";matchParser::parse_sql(&PostgreSqlDialect{}, sql){Ok(statements) => println!("{statements:?}"),Err(error) => println!("{error}"),}}
Actual behavior
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.
Activity