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

Denys Kuzmenko commented on HIVE-29277:
---------------------------------------

Merged to master

Thanks for the fix, [~wechar] !

> Invalid index should return null for get_json_object 
> -----------------------------------------------------
>
>                 Key: HIVE-29277
>                 URL: https://issues.apache.org/jira/browse/HIVE-29277
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>    Affects Versions: 4.1.0
>            Reporter: Wechar
>            Assignee: Wechar
>            Priority: Major
>              Labels: pull-request-available
>
> {{get_json_object}} index is numeric, but current implement will return the 
> entire array string for invalid index like {*}$[1 ]{*}.
> {code:sql}
> hive> select get_json_object('[1,2,3]', "$[1 ]");
> [1,2,3]
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to