Skip to content

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
@cloudflare-workers-and-pages
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

@codecov
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).
Report is 62 commits behind head on main.

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.

@shcheklein
Copy link
Contributor

Closing for now ...

@shcheklein shcheklein closed this Jun 7, 2025
@0x2b3bfa0 0x2b3bfa0 deleted the ilongin/1028-switch-storages branch June 24, 2025 13:35
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

3 participants