[
https://issues.apache.org/jira/browse/SPARK-8264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Reynold Xin updated SPARK-8264:
-------------------------------
Assignee: Cheng Hao
> 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: [email protected]
For additional commands, e-mail: [email protected]