You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Steven Phillips (JIRA)" <ji...@apache.org> on 2015/04/30 09:59:07 UTC
[jira] [Updated] (DRILL-2919) Drill not resolving repeated values
in json
[ https://issues.apache.org/jira/browse/DRILL-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steven Phillips updated DRILL-2919:
-----------------------------------
Component/s: (was: Execution - Flow)
Storage - JSON
> 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: Storage - JSON
> Affects Versions: 0.8.0
> Reporter: mohit kaushik
> Assignee: Steven Phillips
> Labels: features
>
> 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)