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 clause to create statement on when creating a table using duckdb acceleration. #1290

Merged
merged 4 commits into from
May 3, 2024

Conversation

digadeesh
Copy link
Contributor

In the case that we're using file based duckdb acceleration, we get an error if we start spice, stop it, and restart, because the table already exists.

For other persistent stores, postgres and sqlite, we check for existence. If there is a change in schema in the data connector, it'll still error out. But thats OK since a schema change would probably be a situation where you'd want the user to think and take action before erasing existing data.

@digadeesh
Copy link
Contributor Author

Fixes: #1263

@digadeesh digadeesh requested a review from a team as a code owner May 3, 2024 00:45
@digadeesh digadeesh enabled auto-merge (squash) May 3, 2024 00:46
@digadeesh digadeesh changed the title Add if not exists to create statement on init for duckdb Add if not exists clause to create statement on when creating a table using duckdb acceleration. May 3, 2024
@digadeesh digadeesh merged commit 21e908a into trunk May 3, 2024
15 checks passed
@digadeesh digadeesh deleted the file_error branch May 3, 2024 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants