-
Notifications
You must be signed in to change notification settings - Fork 399
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] from_hub raise on existing dataset name (#5358)
# Description <!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. --> This PR changes the behaviour of the `from_disk` method when a dataset of the same name already exists. Currently, a new dataset is create with the name + uuid. This change will: - check id the dataset name exists, and if so - warn that the dataset exists and that the `name` parameter could be used to create a new one - try to push records to the existing dataset with a try except to add more context Closes #5346 **Type of change** - Improvement (change adding some improvement to an existing functionality) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5c12e32
commit 08d6ed5
Showing
2 changed files
with
43 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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