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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]