drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Wild (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-4917) Unable to alias columns from subquery
Date Thu, 29 Sep 2016 19:40:20 GMT

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

Dan Wild updated DRILL-4917:
----------------------------
    Description: 
Column aliasing works in a simple query (without subqueries):
{code}
select 1 as myVal from (values(1))
{code}
My result set gives me one column called myVal as expected
|myVal||
|1|

However, when I run the query
{code}
select myVal as myValAlias FROM(select 1 as myVal from (values(1)))
{code}
the alias myValAlias is not applied, and the resulting column is still called myVal
|myVal||
|1|

  was:
Column aliasing works in a simple query (without subqueries):
{code}
select 1 as myVal from (values(1))
{code}
My result set gives me one column called myVal as expected.

However, when I run the query
{code}
select myVal as myValAlias FROM(select 1 as myVal from (values(1)))
{code}
the alias myValAlias is not applied, and the resulting column is still called myVal.


> Unable to alias columns from subquery
> -------------------------------------
>
>                 Key: DRILL-4917
>                 URL: https://issues.apache.org/jira/browse/DRILL-4917
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: Dan Wild
>
> Column aliasing works in a simple query (without subqueries):
> {code}
> select 1 as myVal from (values(1))
> {code}
> My result set gives me one column called myVal as expected
> |myVal||
> |1|
> However, when I run the query
> {code}
> select myVal as myValAlias FROM(select 1 as myVal from (values(1)))
> {code}
> the alias myValAlias is not applied, and the resulting column is still called myVal
> |myVal||
> |1|



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

Mime
View raw message