Skip to content

Added DataChain.storage_switch() method #1037

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ilongin
Copy link
Contributor

@ilongin ilongin commented Apr 10, 2025

Added DataChain.storage_switch() method to update source column with new storage value (e.g different s3 bucket).
Optionally old_storage argument can be passed so only those rows with old_storage values are updated which can be convenient when dataset has multiple sources and we only want to update one of those.

TODO:

  • Reset version, etag, last_modified and size
  • Create new method called bucket_update() to update version, etag, last_modified

@ilongin ilongin marked this pull request as draft April 10, 2025 14:44
@ilongin ilongin linked an issue Apr 10, 2025 that may be closed by this pull request
Copy link

cloudflare-workers-and-pages bot commented Apr 10, 2025

Deploying datachain-documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9ccc536
Status: ✅  Deploy successful!
Preview URL: https://4c2c7c43.datachain-documentation.pages.dev
Branch Preview URL: https://ilongin-1028-switch-storages.datachain-documentation.pages.dev

View logs

Copy link

codecov bot commented Apr 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.17%. Comparing base (95c95f7) to head (9ccc536).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1037   +/-   ##
=======================================
  Coverage   88.16%   88.17%           
=======================================
  Files         145      145           
  Lines       12379    12386    +7     
  Branches     1719     1720    +1     
=======================================
+ Hits        10914    10921    +7     
  Misses       1046     1046           
  Partials      419      419           
Flag Coverage Δ
datachain 88.09% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

How to change remote storage of a datachain
1 participant