You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tajo.apache.org by "Jae Young Lee (JIRA)" <ji...@apache.org> on 2013/12/05 08:17:35 UTC

[jira] [Created] (TAJO-381) find_in_set

Jae Young Lee created TAJO-381:
----------------------------------

             Summary: find_in_set
                 Key: TAJO-381
                 URL: https://issues.apache.org/jira/browse/TAJO-381
             Project: Tajo
          Issue Type: Improvement
            Reporter: Jae Young Lee
            Assignee: Jae Young Lee
            Priority: Minor


find_in_set(str,str_array) - Returns the first occurrence of str in str_array where str_array is a comma-delimited string.
Returns null if either argument is null. Returns 0 if the first argument has any commas.

Example:
SELECT find_in_set('cr','crt,c,cr,c,def') FROM src LIMIT 1;\n"
-> result: 3




--
This message was sent by Atlassian JIRA
(v6.1#6144)