[
https://issues.apache.org/jira/browse/DRILL-7928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17344976#comment-17344976
]
ASF GitHub Bot commented on DRILL-7928:
---------------------------------------
Leon-WTF opened a new pull request #2227:
URL: https://github.com/apache/drill/pull/2227
# [DRILL-7928](https://issues.apache.org/jira/browse/DRILL-7928): Add fourth
parameter for split_part udf
## Description
Add the fourth parameter in split_part udf as end index: suport
split_part('a,b,c,d', ',' , 1, 2) = 'a,b'
Return all remaining string if end indx is greater then splitted string
length
## Documentation
string split_part(string input, string delimiter, bigint start, bigint end)
## Testing
New test added in
org.apache.drill.exec.expr.fn.impl.TestStringFunctions.testSplitPartStartEnd
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Add fourth parameter for split_part udf
> ---------------------------------------
>
> Key: DRILL-7928
> URL: https://issues.apache.org/jira/browse/DRILL-7928
> Project: Apache Drill
> Issue Type: Improvement
> Components: Functions - Drill
> Reporter: wtf
> Assignee: wtf
> Priority: Minor
>
> suport split_part('a,b,c,d', ',' , 1, 2) = 'a,b'
--
This message was sent by Atlassian Jira
(v8.3.4#803005)