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/02/22 06:25:23 UTC

[GitHub] [arrow-datafusion] matthewmturner opened a new issue #1871: CREATE EXTERNAL TABLE sql should check if table exists before doing IO

matthewmturner opened a new issue #1871:
URL: https://github.com/apache/arrow-datafusion/issues/1871


   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for this feature, in addition to  the *what*)
   I was using datafusion-cli to test some sql queries on a large csv (for db-benchmark).  It takes a while for the table to be created as it is a large csv.  I ran the `CREATE EXTERNAL TABLE` command twice in the same session and got the error `Execution("The table x already exists")`.  However i had to wait the full time for IO to complete before the error showed up which i think is a waste of time.  I believe this is because we are running IO before checking if table exists.
   
   **Describe the solution you'd like**
   A clear and concise description of what you want to happen.
   We should check if a table exists before doing IO and raise the table already exists error if it already exists.
   
   **Describe alternatives you've considered**
   A clear and concise description of any alternative solutions or features you've considered.
   
   **Additional context**
   Add any other context or screenshots about the feature request here.
   


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