You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/07/20 10:16:04 UTC

[jira] [Commented] (SPARK-8264) string function: substring_index

    [ https://issues.apache.org/jira/browse/SPARK-8264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14633148#comment-14633148 ] 

Apache Spark commented on SPARK-8264:
-------------------------------------

User 'zhichao-li' has created a pull request for this issue:
https://github.com/apache/spark/pull/7533

> string function: substring_index
> --------------------------------
>
>                 Key: SPARK-8264
>                 URL: https://issues.apache.org/jira/browse/SPARK-8264
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Reynold Xin
>            Assignee: Cheng Hao
>
> substring_index(string A, string delim, int count): string
> Returns the substring from string A before count occurrences of the delimiter delim (as of Hive 1.3.0). If count is positive, everything to the left of the final delimiter (counting from the left) is returned. If count is negative, everything to the right of the final delimiter (counting from the right) is returned. Substring_index performs a case-sensitive match when searching for delim. Example: substring_index('www.apache.org', '.', 2) = 'www.apache'.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org