-
Notifications
You must be signed in to change notification settings - Fork 141
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
Add position() string function to PPL #1147
Add position() string function to PPL #1147
Conversation
* Add position() string function to PPL Signed-off-by: Margarit Hakobyan <[email protected]>
Codecov Report
@@ Coverage Diff @@
## 2.x #1147 +/- ##
============================================
- Coverage 98.31% 95.81% -2.50%
- Complexity 3485 3486 +1
============================================
Files 348 358 +10
Lines 8707 9369 +662
Branches 555 674 +119
============================================
+ Hits 8560 8977 +417
- Misses 142 334 +192
- Partials 5 58 +53
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Margarit Hakobyan <[email protected]>
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.
Thanks for the changes!
Signed-off-by: Margarit Hakobyan [email protected]
Description
Usage: The syntax POSITION(substr IN str) returns the position of the first occurrence of substring substr in string str. Returns 0 if substr is not in str. Returns NULL if any argument is NULL.
Argument type: STRING, STRING
Return type INTEGER:
(STRING IN STRING) -> INTEGER
Example::
Issues Resolved
#1106
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.