You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/10/20 16:35:00 UTC
[jira] [Updated] (HIVE-29277) Invalid index should return null for get_json_object
[ https://issues.apache.org/jira/browse/HIVE-29277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HIVE-29277:
----------------------------------
Labels: pull-request-available (was: )
> 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
> 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)