AssHero opened a new pull request, #2613:
URL: https://github.com/apache/arrow-datafusion/pull/2613

   # Which issue does this PR close?
   Closes  #2605 
   
    # Rationale for this change
   replace the table content if table already exits
   ❯ create table xx as values(1,2),(3,4);
   +---------+---------+
   | column1 | column2 |
   +---------+---------+
   | 1       | 2       |
   | 3       | 4       |
   +---------+---------+
   2 rows in set. Query took 0.004 seconds.
   
   ❯ create or replace table xx as values(5,6);
   +---------+---------+
   | column1 | column2 |
   +---------+---------+
   | 5       | 6       |
   +---------+---------+
   1 row in set. Query took 0.004 seconds.
   
   if 'if not exists' and 'or replace' are both specified, treat as 'or replace'
   ❯ create or replace table if not exists xx as values(7,8);
   +---------+---------+
   | column1 | column2 |
   +---------+---------+
   | 7       | 8       |
   +---------+---------+
   1 row in set. Query took 0.002 seconds.
   
   # What changes are included in this PR?
   adjust rules for create table in context.rs
   


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

Reply via email to