You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "r4ntix (via GitHub)" <gi...@apache.org> on 2023/04/10 14:16:09 UTC

[GitHub] [arrow-datafusion] r4ntix opened a new issue, #5943: Not implemented `SELECT INTO`

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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] yjshen closed issue #5943: Not implemented `SELECT INTO`

Posted by "yjshen (via GitHub)" <gi...@apache.org>.
yjshen closed issue #5943: Not implemented `SELECT INTO`
URL: https://github.com/apache/arrow-datafusion/issues/5943


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org