liukun4515 commented on issue #1269: URL: https://github.com/apache/arrow-datafusion/issues/1269#issuecomment-968069058
> I suggest we support the postgres model here (it does not seem to have `create or replace table`) > > ```sql > create table foo (...); -- errors if a table named foo already exists > ``` > > ```sql > drop table foo (...); -- errors if the table does not already exists > ``` > > That way it is super clear that we aren't replacing tables and the user has to explicitly drop the existing one > > Bonus points for supporting `create table ... if not exists`, but perhaps as a follow on PR I can give another pull request to implement the `drop table foo` and `create table .... if not exists` -- 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]
