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

Hudson commented on TAJO-1754:
------------------------------

FAILURE: Integrated in Tajo-master-CODEGEN-build #436 (See 
[https://builds.apache.org/job/Tajo-master-CODEGEN-build/436/])
TAJO-1754: Implement several functions to handle json array. (jihoonson: rev 
9114485b594b89616f240267fc3b3cf5d2a02370)
* 
tajo-core/src/main/java/org/apache/tajo/engine/function/json/JsonArrayLength.java
* 
tajo-core/src/main/java/org/apache/tajo/engine/function/json/JsonArrayContains.java
* tajo-docs/src/main/sphinx/functions/json_func.rst
* 
tajo-core/src/main/java/org/apache/tajo/engine/function/json/ScalarJsonFunction.java
* 
tajo-core/src/main/java/org/apache/tajo/engine/function/json/JsonExtractPathText.java
* tajo-core/src/main/java/org/apache/tajo/engine/function/json/JsonArrayGet.java
* CHANGES
* tajo-core/src/test/java/org/apache/tajo/engine/function/TestJsonFunctions.java


> Implement several functions to handle json array
> ------------------------------------------------
>
>                 Key: TAJO-1754
>                 URL: https://issues.apache.org/jira/browse/TAJO-1754
>             Project: Tajo
>          Issue Type: Sub-task
>          Components: Function/UDF
>            Reporter: Jihoon Son
>            Assignee: Jihoon Son
>             Fix For: 0.11.0
>
>
> h4. json_array_get
> {noformat}
> SELECT json_array_get('["a", "b", "c"]', 0); => "a"
> SELECT json_array_get('["a", "b", "c"]', 1); => "b"
> SELECT json_array_get('["c", "b", "a"]', -1); => "a"
> SELECT json_array_get('["c", "b", "a"]', -2); => "b"
> SELECT json_array_get('[]', 0); => null
> SELECT json_array_get('["a", "b", "c"]', 10); => null
> SELECT json_array_get('["c", "b", "a"]', -10); => null
> {noformat}
> h4. json_array_contains
> {noformat}
> SELECT json_array_contains('[1, 2, 3]', 2);
> {noformat}
> h4. json_array_length
> {noformat}
> SELECT json_array_length('[1, 2, 3]');
> {noformat}



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

Reply via email to