Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IF NOT EXISTS to CREATE TABLE and CREATE EXTERNAL TABLE #2143

Merged

Conversation

matthewmturner
Copy link
Contributor

Which issue does this PR close?

Task 14 of #1777

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@matthewmturner
Copy link
Contributor Author

i think i will add this option to CREATE TABLE as well

@matthewmturner matthewmturner changed the title Add IF NOT EXISTS to CREATE EXTERNAL TABLE Add IF NOT EXISTS to CREATE TABLE and CREATE EXTERNAL TABLE Apr 4, 2022
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good to me -- thank you @matthewmturner

I think it would be worth one sql test -- perhaps inhttps://github.com/WinkerDu/arrow-datafusion/blob/master-string-concat/datafusion/core/tests/sql/create_drop.rs#L25 to show that this code was all hooked up correctly (and ensure we didn't break the connections accidentally)

@matthewmturner
Copy link
Contributor Author

@alamb sure will add one.

@matthewmturner
Copy link
Contributor Author

@alamb I believe this is ready.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌 Looking very nice; Thank you @matthewmturner

@alamb alamb merged commit 8230115 into apache:master Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants