sabir-akhadov-localstack opened a new pull request, #2442:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2442

   `visit_relations` / `visit_relations_mut` did not visit the view name in 
`CREATE VIEW` statements:
   
   ```rust
   let statements = Parser::parse_sql(&GenericDialect {}, "CREATE VIEW db1.v AS 
SELECT * FROM t")?;
   // visit_relations yielded only `t`, not `db1.v`
   ```
   
   `CreateTable`, `CreateIndex`, `Msck`, and `AlterTable` already annotate 
their object names with `visit(with = "visit_relation")` — `CreateView.name` 
was missing the annotation. This PR adds it, so tools that inspect or rewrite 
relation references (e.g. schema rewriters) see the view name too.
   


-- 
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]

Reply via email to