drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mohit kaushik (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-2919) Drill not resolving repeated values in json
Date Thu, 30 Apr 2015 06:28:06 GMT
mohit kaushik created DRILL-2919:
------------------------------------

             Summary: Drill not resolving repeated values in json
                 Key: DRILL-2919
                 URL: https://issues.apache.org/jira/browse/DRILL-2919
             Project: Apache Drill
          Issue Type: Bug
          Components: Execution - Flow
    Affects Versions: 0.8.0
            Reporter: mohit kaushik
            Assignee: Chris Westin


I have a json file in HDFS named autom.json contains. 
{
  "company": [
    {
      "modelName": {
        "name": "abc"
      }
    },
    {
      "modelName": {
        "name": "xyz"
      }
    }
  ]
}
When i query 
select t.company.`modelName`  from hdfs.`autom.json` t ;
it gives result 
{"name":"abc"} 
However, The expected result was both entries. 
{"name":"abc"} 
{"name":"xyz"} 
Even when I query 
select t.company.`modelName`  from hdfs.`autom.json` t where t.company.`modelName`.`name`='xyz'
;
it does not find anything.




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

Mime
View raw message