-
Notifications
You must be signed in to change notification settings - Fork 180
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 binary string operations (length and concatenation) #3646
Conversation
18b8ab2
to
3e0dae6
Compare
CodSpeed Performance ReportMerging #3646 will degrade performances by 40.19%Comparing Summary
Benchmarks breakdown
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great so far!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3646 +/- ##
==========================================
- Coverage 77.99% 77.93% -0.06%
==========================================
Files 720 726 +6
Lines 88794 90801 +2007
==========================================
+ Hits 69252 70767 +1515
- Misses 19542 20034 +492
|
6338308
to
cf73ba2
Compare
2deddac
to
1c26a63
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far! In addition to the other comments there's two things you should also do:
- add these functions to our docs by adding a section in
docs/source/api_docs/expressions.rst
- implement this for the FixedSizeBinaryArray type as well
… iterator creation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far! I had some comments on things to clean up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, feel free to merge once these last few comments are addressed
This PR implements core binary string operations in Daft, supporting both regular binary and fixed-size binary types.
New Features
Binary String Operations
binary.length()
: Returns length of binary databinary.concat()
: Concatenates two binary arraysbinary.substr()
: Extracts substring with optional length parameterFixed-Size Binary Support