lei-jia-xing commented on code in PR #3040:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/3040#discussion_r4698363532
##########
src/parser/mod.rs:
##########
@@ -5566,6 +5566,16 @@ impl<'a> Parser<'a> {
self.parse_create_external_table(or_replace).map(Into::into)
} else if self.parse_keyword(Keyword::FUNCTION) {
self.parse_create_function(or_alter, or_replace, temporary)
+ } else if self.dialect.supports_create_statistics()
+ && self.parse_keyword(Keyword::STATISTICS)
+ {
+ if has_modifier {
Review Comment:
for a such illegal test.sql
```
CREATE TEMP POLICY p ON t USING (true);
```
run with
```
cargo run --quiet --example cli -- ./test.sql --postgres
```
Round-trip:
'CREATE POLICY p ON t USING (true)'
It parses and remove the temp. But it can't be parsed
https://www.postgresql.org/docs/17/sql-createpolicy.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]