Filip Grabowski created DRILL-4315:
--------------------------------------

             Summary: Empty JSON(Mongo) document causes "Unexpected 
RuntimeException"
                 Key: DRILL-4315
                 URL: https://issues.apache.org/jira/browse/DRILL-4315
             Project: Apache Drill
          Issue Type: Bug
    Affects Versions: 1.4.0
         Environment: Linux
            Reporter: Filip Grabowski


An example of a JSON docuemnt:
 {
   "code" : "IRE-cGz6TqJEeWHVwBQVgET6w", 
   "attributes" : {} 
} 
If all "attribute" are null(as in the example above) drill produces an error as 
shown below: 
select attributes from mongo.MASTER_WS.interactionrecord; Error: Unexpected 
RuntimeException: java.lang.NullPointerException (state=,code=0) 

The same query returns values if there is at least one document for which  
attribute is not null. 
It is ugly because it make the system look unstable. 

I wanted to use the query to convert JSON into parquet and it fails the same 
way as with the select.

By the way when creating this issue version 1.4 was on the list of unreleased 
versions...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to