You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2015/06/09 09:34:00 UTC

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

Reynold Xin created SPARK-8264:
----------------------------------

             Summary: string function: substring_index
                 Key: SPARK-8264
                 URL: https://issues.apache.org/jira/browse/SPARK-8264
             Project: Spark
          Issue Type: Sub-task
            Reporter: Reynold Xin


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