Venki Korukanti created DRILL-595:
-------------------------------------

             Summary: 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
            Reporter: Venki Korukanti
            Assignee: Jacques Nadeau


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)

Reply via email to