Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9EFB1200BA0 for ; Thu, 29 Sep 2016 21:40:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 80188160AE4; Thu, 29 Sep 2016 19:40:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C867C160AC1 for ; Thu, 29 Sep 2016 21:40:21 +0200 (CEST) Received: (qmail 26673 invoked by uid 500); 29 Sep 2016 19:40:21 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 26650 invoked by uid 99); 29 Sep 2016 19:40:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2016 19:40:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D5B572C002D for ; Thu, 29 Sep 2016 19:40:20 +0000 (UTC) Date: Thu, 29 Sep 2016 19:40:20 +0000 (UTC) From: "Dan Wild (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-4917) Unable to alias columns from subquery MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 29 Sep 2016 19:40:22 -0000 [ 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)