Rahul Challapalli created DRILL-5534:
----------------------------------------
Summary: 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)