Skip to content

fix: overwrite mode now deletes existing dataset before re-creating - #39

Merged
zurfjereluhmie merged 1 commit into
mainfrom
fix/overwrite-dataset-409
Apr 22, 2026
Merged

fix: overwrite mode now deletes existing dataset before re-creating#39
zurfjereluhmie merged 1 commit into
mainfrom
fix/overwrite-dataset-409

Conversation

@zurfjereluhmie

@zurfjereluhmie zurfjereluhmie commented Apr 22, 2026

Copy link
Copy Markdown
Owner
  • Fix on_exist="overwrite" in DatasetUploader which previously caused a 409 Conflict (DatasetUploadError) when the dataset already existed
  • The code incorrectly assumed create_dataset would create a new version for an existing name; it actually rejects duplicates
  • The fix looks up the existing dataset via get_dataset, deletes it via the Phoenix REST API (DELETE /v1/datasets/{id}), then creates a fresh dataset
  • When the dataset doesn't exist yet, it creates directly without attempting a delete

Previously, on_exist="overwrite" called create_dataset directly, which
returned a 409 Conflict (DatasetUploadError) when the dataset already
existed. The code incorrectly assumed Phoenix would create a new version.

The fix looks up the existing dataset, deletes it via the REST API
(DELETE /v1/datasets/{id}), then creates a fresh dataset.
@zurfjereluhmie
zurfjereluhmie merged commit eab726c into main Apr 22, 2026
10 checks passed
@zurfjereluhmie
zurfjereluhmie deleted the fix/overwrite-dataset-409 branch April 22, 2026 13:10
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.

1 participant