[ https://issues.apache.org/jira/browse/HIVE-11334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14636126#comment-14636126 ]
ASF GitHub Bot commented on HIVE-11334: --------------------------------------- GitHub user zhichao-li opened a pull request: https://github.com/apache/hive/pull/47 HIVE-11334-fix substring_index for multiple chars delim You can merge this pull request into a Git repository by running: $ git pull https://github.com/zhichao-li/hive substringindex Alternatively you can review and apply these changes as the patch at: https://github.com/apache/hive/pull/47.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #47 ---- commit 2acedeef1ca4ff1211410e9ffe9c437f2902de0d Author: zhichao.li <zhichao...@intel.com> Date: 2015-07-22T01:50:03Z fix substring_index for multiple chars delim ---- > Incorrect answer when facing multiple chars delim and negative count for > substring_index > ----------------------------------------------------------------------------------------- > > Key: HIVE-11334 > URL: https://issues.apache.org/jira/browse/HIVE-11334 > Project: Hive > Issue Type: Bug > Reporter: zhichao-li > Priority: Minor > > substring_index("www||apache||org", "||", -2) would return "|apache||org" > instead of "apache||org" -- This message was sent by Atlassian JIRA (v6.3.4#6332)