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
Fix string split which should be on whole separator #9650
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9650 +/- ##
============================================
+ Coverage 62.83% 62.86% +0.02%
+ Complexity 5162 5161 -1
============================================
Files 1935 1935
Lines 103815 103815
Branches 15758 15758
============================================
+ Hits 65236 65259 +23
+ Misses 33708 33680 -28
- Partials 4871 4876 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
} | ||
|
||
/** | ||
* TODO: Revisit if index should be zero-based |
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.
What do you mean by zero-based
here? Can you elaborate the concern here?
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.
See the discussion under #9554. Added more comments to make it more clear
Fix
split()
andsplit_part()
scalar function which should be split on whole separator. Currentlysplit(col, 'ab')
will split on botha
andb
which is incorrect.