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] Add find functionality for string #2046

Merged
merged 4 commits into from
Apr 1, 2024

Conversation

murex971
Copy link
Contributor

@murex971 murex971 commented Mar 28, 2024

Resolves #1925

Returns the first occurrence of the substr provided, -1, in case of fails to find.

Copy link
Contributor

@jaychia jaychia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work so far! Few comments/questions.

daft/expressions/expressions.py Show resolved Hide resolved
tests/expressions/typing/test_str.py Show resolved Hide resolved
src/daft-core/src/array/ops/utf8.rs Outdated Show resolved Hide resolved
src/daft-core/src/array/ops/utf8.rs Outdated Show resolved Hide resolved
tests/series/test_utf8_ops.py Show resolved Hide resolved
Copy link
Contributor

@jaychia jaychia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Just two comments left and then we should be good to go.

daft/expressions/expressions.py Outdated Show resolved Hide resolved
src/daft-core/src/array/ops/full.rs Outdated Show resolved Hide resolved
Copy link

codecov bot commented Apr 1, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 84.72%. Comparing base (3c43394) to head (345c22e).
Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2046   +/-   ##
=======================================
  Coverage   84.72%   84.72%           
=======================================
  Files          62       62           
  Lines        6840     6849    +9     
=======================================
+ Hits         5795     5803    +8     
- Misses       1045     1046    +1     
Files Coverage Δ
daft/expressions/expressions.py 91.80% <100.00%> (+0.05%) ⬆️
daft/series.py 92.98% <80.00%> (-0.14%) ⬇️

... and 1 file with indirect coverage changes

@jaychia jaychia added the enhancement New feature or request label Apr 1, 2024
@jaychia jaychia merged commit f0aab5c into Eventual-Inc:main Apr 1, 2024
29 of 30 checks passed
@jaychia
Copy link
Contributor

jaychia commented Apr 1, 2024

Great work! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EXPRESSIONS] .str.find
3 participants