You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Rahul Challapalli (JIRA)" <ji...@apache.org> on 2015/04/24 22:44:39 UTC

[jira] [Commented] (DRILL-1771) Doing a flatten along with selecting a column from a subquery which does a flatten over kvgen results in a planning error

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

Rahul Challapalli commented on DRILL-1771:
------------------------------------------

Verified and added the below testcase :

Functional/Passing/json_kvgenflatten/combo/kvgenflattenbug_DRILL-1771.q

> Doing a flatten along with selecting a column from a subquery which does a flatten over kvgen results in a planning error
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DRILL-1771
>                 URL: https://issues.apache.org/jira/browse/DRILL-1771
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill, Storage - JSON
>            Reporter: Rahul Challapalli
>            Assignee: Daniel Barclay (Drill)
>             Fix For: 0.7.0
>
>         Attachments: error.log
>
>
> git.commit.id.abbrev=108d29f
> Dataset :
> {code}
> {"map":{"rm": [ {"rptd": [{ "a": "foo"}]}]}}
> {code}
> Query :
> {code}
> select sub.fk.key, flatten(sub.fk.`value`) from (select flatten(kvgen(map)) fk from `json_kvgenflatten/nested3.json` limit 1) sub;
> Query failed: Failure while setting up Foreman.
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> {code}
> I attached the error log. Let me know if you need anything more



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