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

DaeMyung Kang commented on TAJO-381:
------------------------------------

"mvn clean install" is OK.
and I tested with mysql 

testSimpleEval("select find_in_set('c',',c,,,') as col1 ", new String[]{"2"};

and 

MariaDB [test]> select find_in_set('c',',c,,,,,');
+----------------------------+
| find_in_set('c',',c,,,,,') |
+----------------------------+
|                          2 |
+----------------------------+

it is also ok.
This patch looks good to me.

[~hyunsik][~goodljy]
Does tajo just handle string as UTF-8?

I just worried one thing. when some strings are in different encodings. event 
though, they are different but 
byte arrays are same.(It is just my guessing.)

> 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
>         Attachments: TAJO-381.patch
>
>
> 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') as col1 "
> -> result: 3



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to