-
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 reverse() string function to V2 #183
Conversation
Codecov Report
@@ Coverage Diff @@
## integ-add-reverse-to-v2 #183 +/- ##
==========================================================
Coverage 98.30% 98.31%
- Complexity 3518 3521 +3
==========================================================
Files 342 342
Lines 8694 8700 +6
Branches 554 554
==========================================================
+ Hits 8547 8553 +6
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 |
core/src/main/java/org/opensearch/sql/expression/function/BuiltinFunctionName.java
Outdated
Show resolved
Hide resolved
docs/user/ppl/functions/string.rst
Outdated
Description | ||
>>>>>>>>>>> | ||
|
||
Usage: REVERSE(str) returns reversed string of the string supplied as an argument. Returns NULL if the argument is NULL. |
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.
Since we're mentioning it here, we should add the NULL case to the test below
@Test | ||
public void testReverse() throws IOException { | ||
verifyQuery("reverse('hello')", "keyword", "olleh"); | ||
verifyQuery("reverse('')", "keyword", ""); |
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.
null case?
Signed-off-by: Margarit Hakobyan <margarith@bitquilltech.com>
Signed-off-by: Margarit Hakobyan <margarith@bitquilltech.com>
Signed-off-by: Margarit Hakobyan <margarith@bitquilltech.com>
Signed-off-by: Margarit Hakobyan <margarith@bitquilltech.com>
4430764
to
555e1a0
Compare
Signed-off-by: Margarit Hakobyan <margarith@bitquilltech.com>
Signed-off-by: Margarit Hakobyan <margarith@bitquilltech.com>
Signed-off-by: Margarit Hakobyan margarith@bitquilltech.com
Description
Usage: REVERSE(str) returns reversed string of the string supplied as an argument. Returns NULL if the argument is NULL.
Argument type: STRING
Return type: STRING
Example::
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.