Skip to content
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

feat(sqlite): add srtring replace function #508

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Conversation

shcheklein
Copy link
Member

@shcheklein shcheklein commented Oct 14, 2024

Adds a replace function to do something like this:

(
    DataChain.from_csv(CROPS_TABLE_PATH, source=False)
             .mutate(filepath=string.replace(C("s3_image_url"), "s3://qco-image-data/", "data/"))
)

Copy link

Deploying datachain-documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: fae45ba
Status: ✅  Deploy successful!
Preview URL: https://0a1e6df3.datachain-documentation.pages.dev
Branch Preview URL: https://add-vectorized-replace.datachain-documentation.pages.dev

View logs

Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.10%. Comparing base (9971e62) to head (fae45ba).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #508   +/-   ##
=======================================
  Coverage   87.10%   87.10%           
=======================================
  Files          92       92           
  Lines        9839     9848    +9     
  Branches     1354     1349    -5     
=======================================
+ Hits         8570     8578    +8     
  Misses        917      917           
- Partials      352      353    +1     
Flag Coverage Δ
datachain 87.07% <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.

@shcheklein shcheklein requested a review from a team October 14, 2024 00:29
@shcheklein shcheklein merged commit cdab709 into main Oct 14, 2024
38 checks passed
@shcheklein shcheklein deleted the add-vectorized-replace branch October 14, 2024 01:06
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.

2 participants