You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Dan Wild (JIRA)" <ji...@apache.org> on 2016/09/29 19:39:20 UTC
[jira] [Updated] (DRILL-4917) Unable to alias columns from subquery
[ 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.
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.
was:
Column aliasing works in a simple query (without subqueries):
`select 1 as myVal from (values(1))`
My result set gives me one column called myVal as expected.
However, when I run the query
`select myVal as myValAlias FROM(select 1 as myVal from (values(1)))`
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.
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)