Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A686B18EB5 for ; Sat, 26 Sep 2015 00:57:04 +0000 (UTC) Received: (qmail 48394 invoked by uid 500); 26 Sep 2015 00:57:04 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 48365 invoked by uid 500); 26 Sep 2015 00:57:04 -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 48352 invoked by uid 99); 26 Sep 2015 00:57:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Sep 2015 00:57:04 +0000 Date: Sat, 26 Sep 2015 00:57:04 +0000 (UTC) From: "Victoria Markman (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: =?utf-8?Q?[jira]_[Commented]_(DRILL-3663)_Drill_?= =?utf-8?Q?View_aliases_being_lost_via_=E2=80=98order_by=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-3663?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1490= 8949#comment-14908949 ]=20 Victoria Markman commented on DRILL-3663: ----------------------------------------- Can't reproduce in 1.2.0 either: {code} 0: jdbc:drill:schema=3Ddfs> create or replace view v1 as select dir0 AS yr,= dir1 AS mth, count(*) AS RecordCount from test where dir0 in( '2015') grou= p by dir0,dir1; +-------+------------------------------------------------------+ | ok | summary | +-------+------------------------------------------------------+ | true | View 'v1' replaced successfully in 'dfs.tmp' schema | +-------+------------------------------------------------------+ 1 row selected (0.385 seconds) 0: jdbc:drill:schema=3Ddfs> select * from v1; +-------+------+--------------+ | yr | mth | RecordCount | +-------+------+--------------+ | 2015 | Q1 | 10 | +-------+------+--------------+ 1 row selected (0.429 seconds) {code} > Drill View aliases being lost via =E2=80=98order by=E2=80=99 > -------------------------------------------- > > Key: DRILL-3663 > URL: https://issues.apache.org/jira/browse/DRILL-3663 > Project: Apache Drill > Issue Type: Bug > Components: Query Planning & Optimization > Reporter: Soumendra Kumar Mishra > Assignee: Sean Hsuan-Yi Chu > Fix For: 1.2.0 > > > Drill view aliases being lost via =E2=80=98order by=E2=80=99 in select qu= ery: > -------------------------------------------------------------------------= ---------- > Query-1: select * from factory.View.vw_factory_data_summary > -------------------------------------------------------------------------= ---------- > yr =09mth=09 RecordCount > 2015=09Jan=09 32467890 > 2015=09Feb=09 44751224 > 2015=09Mar=09 76564531 > -------------------------------------------------------------------------= --------------------------- > Query-2: select * from factory.View.vw_factory_data_summary order by mth > -------------------------------------------------------------------------= --------------------------- > dir0 =09dir1=09 RecordCount > 2015=09Jan=09 32467890 > 2015=09Feb=09 44751224 > 2015=09Mar=09 76564531 > Issue: > In Query-2, column headers are changed i.e. aliases being lost -- This message was sent by Atlassian JIRA (v6.3.4#6332)