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

Volodymyr Vysotskyi commented on DRILL-5534:
--------------------------------------------

This issue will be fixed within DRILL-4824.

> convert_from on a json map with null value produces an NPE
> ----------------------------------------------------------
>
>                 Key: DRILL-5534
>                 URL: https://issues.apache.org/jira/browse/DRILL-5534
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>    Affects Versions: 1.10.0
>            Reporter: Rahul Challapalli
>
> git.commit.id.abbrev=d11aba2
> The below query fails with an NPE. Surprisingly there is information about 
> the error in the logs
> {code}
> 0: jdbc:drill:zk=10.10.100.190:5181> select convert_from('{kpi : null}' 
> ,'json') as kpi from cp.`tpch/lineitem.parquet` limit 1;
> Error: Unexpected RuntimeException: java.lang.NullPointerException 
> (state=,code=0)
> {code}
> Adding one more column to the above query gets rid of the NPE
> {code}
> select '' as rk, convert_from('{kpi : null}' ,'json') as kpi from 
> cp.`tpch/lineitem.parquet` limit 1;
> +-----+------+
> | rk  | kpi  |
> +-----+------+
> |     | {}   |
> +-----+------+
> 1 row selected (1.013 seconds)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to