[DF] Support `CREATE TABLE x AS TABLE y`
Hi, I'd like to be able to parse a statement like CREATE TABLE films2 AS TABLE films as from the second Postgres example found at this source. I currently get a parser error, which is why I originally opened an issue with SQLParser (https://github.com/sqlparser-rs/sqlparser-rs/issues/614).
Now that https://github.com/sqlparser-rs/sqlparser-rs/pull/704 has been merged, this is dependent on DataFusion bumping to the next SQLParser version and then us bumping to the next DataFusion version 🙂
DataFusion now uses the most recently SQLParser changes with https://github.com/apache/arrow-datafusion/pull/4799. Now we are waiting on the next DataFusion release 16.0.0 with these changes.
Can be added once https://github.com/dask-contrib/dask-sql/pull/998 is merged.
Looks like I'll need to make some new changes on the DataFusion side first.
https://github.com/apache/arrow-datafusion/blob/3cc607de4ce6e9e1fd537091e471858c62f58653/datafusion/sql/src/set_expr.rs