-
Notifications
You must be signed in to change notification settings - Fork 0
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 #184
Add position() string function to PPL #184
Conversation
Signed-off-by: Margarit Hakobyan <[email protected]>
Signed-off-by: Margarit Hakobyan <[email protected]>
Codecov Report
@@ Coverage Diff @@
## integ-add-position-function-to-ppl #184 +/- ##
=====================================================================
Coverage 98.31% 98.31%
- Complexity 3485 3486 +1
=====================================================================
Files 348 348
Lines 8707 8711 +4
Branches 555 555
=====================================================================
+ Hits 8560 8564 +4
Misses 142 142
Partials 5 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 |
docs/user/ppl/functions/string.rst
Outdated
|
||
Argument type: STRING, STRING | ||
|
||
Return type INTEGER: |
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.
Return type INTEGER: | |
Return type: INTEGER |
assertEquals(2, result.getInt("total")); | ||
verifyDataRows(result, rows("eight"), rows("eleven")); | ||
} | ||
} |
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.
Need ending newline.
assertEquals(2, result.getInt("total")); | ||
verifyDataRows(result, rows("eight"), rows("eleven")); | ||
} | ||
} |
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.
It really would would like a new line here.
Signed-off-by: Margarit Hakobyan <[email protected]>
Signed-off-by: Margarit Hakobyan <[email protected]>
* Add position() string function to PPL (#184) Signed-off-by: Margarit Hakobyan <[email protected]>
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
[List any issues this PR will resolve]
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.