feat(copy): add flag to create sheet if not exists#103
Merged
mharrisb1 merged 4 commits intoFeb 18, 2026
Merged
Conversation
mharrisb1
deleted the
95-is-it-possible-to-create-a-sheet-if-it-doesnt-exist
branch
February 18, 2026 18:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Closes #95: Is it possible to create a sheet if it doesn't exist?
Users can now use the
create_if_not_existsflag in theCOPY TOcommand to create a sheet if it does not already exist.Warning
The
sheetoption must also be provided. ABinder Errorwill be thrown if not providedTesting
I wanted to add a note here calling out that I added unit tests but could not currently add SQL tests for this change.
To test this in the SQL tests we would need a way to programatically delete the newly created sheet and I just didn't want to mess with that right now.
We can circle back on that at a later point if we think it's necessary.