hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-6301) get_json_object throw java.lang.IllegalStateException: No match found exception.
Date Thu, 06 Feb 2014 01:58:10 GMT

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

Navis commented on HIVE-6301:
-----------------------------

+1

> get_json_object throw java.lang.IllegalStateException: No match found exception.
> --------------------------------------------------------------------------------
>
>                 Key: HIVE-6301
>                 URL: https://issues.apache.org/jira/browse/HIVE-6301
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.10.0, 0.11.0, 0.12.0
>            Reporter: Zhiwen Sun
>            Assignee: Zhiwen Sun
>            Priority: Critical
>         Attachments: HIVE-6301-0.10.patch, HIVE-6301-0.11.patch, HIVE-6301-0.12.patch
>
>
> In fact, you can find the bug in code.
> https://github.com/apache/hive/blob/branch-0.10/ql/src/java/org/apache/hadoop/hive/ql/udf/UDFJson.java#L190
> Miss call _mKey.matches()_ before use _mKey.group(1)_
> The bug still exists in the newest version.
> So, we met such exception in some query:
> {quote}
> 2014-01-23 11:08:19,869 FATAL ExecReducer: org.apache.hadoop.hive.ql.metadata.HiveException:
Unable to execute method public org.apache.hadoop.io.Text org.apache.hadoop.hive.ql.udf.UDFJson.evaluate(java.lang.String,java.lang.String)
 on object org.apache.hadoop.hive.ql.udf.UDFJson@c7056d5 of class org.apache.hadoop.hive.ql.udf.UDFJson
with arguments {{ .... }:java.lang.String, $.6:java.lang.String} of size 2
> Caused by: java.lang.IllegalStateException: No match found
> 	at java.util.regex.Matcher.group(Matcher.java:468)
> 	at org.apache.hadoop.hive.ql.udf.UDFJson.extract(UDFJson.java:190)
> 	at org.apache.hadoop.hive.ql.udf.UDFJson.evaluate(UDFJson.java:154)
> 	... 24 more
> {quote}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message