[
https://issues.apache.org/jira/browse/TINKERPOP-3083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17935397#comment-17935397
]
ASF GitHub Bot commented on TINKERPOP-3083:
-------------------------------------------
andreachild opened a new pull request, #3072:
URL: https://github.com/apache/tinkerpop/pull/3072
https://issues.apache.org/jira/browse/TINKERPOP-3083
Changed split() local and global steps to parse a string into individual
characters if the separator is an empty string - previous implementation left
the string intact. Introduced StringUtil utility class to reuse logic between
the global and local step classes. Feature tests were executed using
-DskipIntegrationTests=false and manual testing was executed using gremlin
console with and without remote context.
This is a back port from master branch which is at version 4.0. Original PR:
https://github.com/apache/tinkerpop/pull/2741
> The split() step should provide a way to split an entire string
> ---------------------------------------------------------------
>
> Key: TINKERPOP-3083
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3083
> Project: TinkerPop
> Issue Type: Improvement
> Components: language, process
> Affects Versions: 3.7.2
> Reporter: Kelvin Lawrence
> Assignee: Cole Greer
> Priority: Critical
> Fix For: 4.0.0
>
>
> There are many use cases where it is helpful to be able to split an entire
> string into an array of characters. In other query languages, passing in a
> null string ('') as the parameter achieves this. I believe the Gremlin step
> should behave the same way. For example
> Current behavior
> {code:java}
> g.inject('Hello').split('')
> ['Hello']{code}
> Proposed new behavior
> {code:java}
> g.inject('Hello').split('')
> ['H','e','l','l','o']{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)