You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/05/24 10:34:56 UTC

[GitHub] [arrow-datafusion] alamb opened a new issue, #2605: Support `CREATE OR REPLACE TABLE`

alamb opened a new issue, #2605:
URL: https://github.com/apache/arrow-datafusion/issues/2605

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   DataFusion already supports `CREATE TABLE AS SELECT`
   
   When working with tables it is nice to be able to replace them when they already exist
   
   **Describe the solution you'd like**
   
   I would like the following SQL to run rather than produce an error:
   
   ```sql
   ❯ CREATE TABLE valuetable AS VALUES(1,'HELLO'),(12,'DATAFUSION');
   +---------+------------+
   | column1 | column2    |
   +---------+------------+
   | 1       | HELLO      |
   | 12      | DATAFUSION |
   +---------+------------+
   2 rows in set. Query took 0.016 seconds.
   ❯ CREATE OR REPLACE TABLE valuetable AS VALUES(1,'HELLO THERE');
   Execution("Table '\"valuetable\"' already exists")
   ```
   
   The result should be that `valuetable` now contains a single row 👍 
   ```
   +---------+------------+
   | column1 | column2    |
   +---------+------------+
   | 1       | HELLO THERE      |
   ```
   
   
   


-- 
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] alamb closed issue #2605: Support `CREATE OR REPLACE TABLE`

Posted by GitBox <gi...@apache.org>.
alamb closed issue #2605: Support `CREATE OR REPLACE TABLE` 
URL: https://github.com/apache/arrow-datafusion/issues/2605


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


[GitHub] [arrow-datafusion] AssHero commented on issue #2605: Support `CREATE OR REPLACE TABLE`

Posted by GitBox <gi...@apache.org>.
AssHero commented on issue #2605:
URL: https://github.com/apache/arrow-datafusion/issues/2605#issuecomment-1140150657

   @alamb please review the patch/pull request


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