Skip to content

feat(copy): add flag to create sheet if not exists#103

Merged
mharrisb1 merged 4 commits into
evidence-dev:mainfrom
mharrisb1:95-is-it-possible-to-create-a-sheet-if-it-doesnt-exist
Feb 18, 2026
Merged

feat(copy): add flag to create sheet if not exists#103
mharrisb1 merged 4 commits into
evidence-dev:mainfrom
mharrisb1:95-is-it-possible-to-create-a-sheet-if-it-doesnt-exist

Conversation

@mharrisb1

Copy link
Copy Markdown
Collaborator

Overview

Closes #95: Is it possible to create a sheet if it doesn't exist?

Users can now use the create_if_not_exists flag in the COPY TO command to create a sheet if it does not already exist.

copy <table_name>
to '<spreadsheet_url>'
(format gsheet, create_if_not_exists true, sheet 'Woot' );

Warning

The sheet option must also be provided. A Binder Error will be thrown if not provided

Testing

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.

@mharrisb1 mharrisb1 self-assigned this Feb 17, 2026
@mharrisb1 mharrisb1 added the enhancement New feature or request label Feb 17, 2026
@mharrisb1
mharrisb1 merged commit 3e5e818 into evidence-dev:main Feb 18, 2026
22 checks passed
@mharrisb1
mharrisb1 deleted the 95-is-it-possible-to-create-a-sheet-if-it-doesnt-exist branch February 18, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is it possible to create a sheet if it doesn't exist?

1 participant