You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Jacques Nadeau (JIRA)" <ji...@apache.org> on 2014/07/31 07:55:39 UTC

[jira] [Updated] (DRILL-595) Can't project columns from a inner query that has "select *"

     [ https://issues.apache.org/jira/browse/DRILL-595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Nadeau updated DRILL-595:
---------------------------------

    Fix Version/s:     (was: 0.4.0)
                   0.5.0

> Can't project columns from a inner query that has "select *"
> ------------------------------------------------------------
>
>                 Key: DRILL-595
>                 URL: https://issues.apache.org/jira/browse/DRILL-595
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: SQL Parser
>            Reporter: Venki Korukanti
>            Assignee: Jacques Nadeau
>             Fix For: 0.5.0
>
>
> Following queries don't work currently with schema-less tables such as parquet or json.
> {code}
> with x as (select * from cp.`region.json`) select region_id, sales_city from x;
> select region_id, sales_city from ( select * from cp.`region.json`);
> {code}
> Both fail with:
> {code}
> message: "Failure while parsing sql. < ValidationException:[ org.eigenbase.util.EigenbaseContextException: From line 1, column 51 to line 1, column 59 ] < EigenbaseContextException:[ From line 1, column 51 to line 1, column 59 ] < SqlValidatorException:[ Column \'region_id\' not found in any table ]
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)