r4ntix opened a new issue, #5943:
URL: https://github.com/apache/arrow-datafusion/issues/5943
### Describe the bug
Currently we do not support `SELECT INTO`, but the SQL does not report
errors and does not execute correctly:
```shell
❯ select table_catalog, table_schema into test from
information_schema.tables;
+---------------+--------------------+
| table_catalog | table_schema |
+---------------+--------------------+
| datafusion | information_schema |
| datafusion | information_schema |
| datafusion | information_schema |
| datafusion | information_schema |
+---------------+--------------------+
4 rows in set. Query took 0.002 seconds.
❯ explain select table_catalog, table_schema into test from
information_schema.tables;
+---------------+-------------------------------------------------------------------------------+
| plan_type | plan
|
+---------------+-------------------------------------------------------------------------------+
| logical_plan | TableScan: information_schema.tables
projection=[table_catalog, table_schema] |
| physical_plan | ExecutionPlan(PlaceHolder)
|
| |
|
+---------------+-------------------------------------------------------------------------------+
2 rows in set. Query took 0.003 seconds.
❯ show tables;
+---------------+--------------------+-------------+------------+
| table_catalog | table_schema | table_name | table_type |
+---------------+--------------------+-------------+------------+
| datafusion | information_schema | tables | VIEW |
| datafusion | information_schema | views | VIEW |
| datafusion | information_schema | columns | VIEW |
| datafusion | information_schema | df_settings | VIEW |
+---------------+--------------------+-------------+------------+
4 rows in set. Query took 0.002 seconds.
```
### To Reproduce
👆
### Expected behavior
_No response_
### Additional context
If we don't support it now, the SQL execution can return `NotImplemented`.
--
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]