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:37:20 UTC

[jira] [Created] (DRILL-4917) Unable to alias columns from subquery

Dan Wild created DRILL-4917:
-------------------------------

             Summary: 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):
`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.



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