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 6E41011D40 for ; Mon, 9 Jun 2014 06:49:29 +0000 (UTC) Received: (qmail 73464 invoked by uid 500); 9 Jun 2014 06:49:29 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 73440 invoked by uid 500); 9 Jun 2014 06:49:29 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 73430 invoked by uid 99); 9 Jun 2014 06:49:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 06:49:29 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 09 Jun 2014 06:49:28 +0000 Received: (qmail 72485 invoked by uid 99); 9 Jun 2014 06:49:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 06:49:08 +0000 Date: Mon, 9 Jun 2014 06:49:08 +0000 (UTC) From: "Jacques Nadeau (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-863) query returns incorrect data when columns selected in the reverse order of their existence in the view MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DRILL-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Nadeau updated DRILL-863: --------------------------------- Component/s: SQL Parser Assignee: Venki Korukanti > query returns incorrect data when columns selected in the reverse order of their existence in the view > ------------------------------------------------------------------------------------------------------ > > Key: DRILL-863 > URL: https://issues.apache.org/jira/browse/DRILL-863 > Project: Apache Drill > Issue Type: Bug > Components: SQL Parser > Reporter: Vivian Summers > Assignee: Venki Korukanti > > I have a view beacon_aster, uid column appears before country and this works fine: > : jdbc:drill:schema=dfs> SELECT uid, country FROM beacon_aster limit 1; > +------------+------------+ > | uid | country | > +------------+------------+ > | 937021026 | US | > +------------+------------+ > 1 row selected (6.52 seconds) > But if select country first, it returns other columns after uid: > 0: jdbc:drill:schema=dfs> SELECT country, uid FROM beacon_aster limit 1; > +------------+------------+ > | country | uid | > +------------+------------+ > | US | 937021026 2816d925-6902-2014-8017-113468677480 2012-09-25 00:00:27.132 20120906.02 60f2761d0e6192a88305054eb06877cb 1 -8 US 9 | > Some cases it throws error: > This works: > 0: jdbc:drill:schema=dfs> SELECT recorded, country FROM beacon_aster limit 1; > +------------+------------+ > | recorded | country | > +------------+------------+ > | 2012-09-25T00:00:27.132-07:00 | US | > +------------+------------+ > 1 row selected (8.279 seconds) > But this throws IllegalArgumentException, recorded columns appears before country column: > 0: jdbc:drill:schema=dfs> SELECT country, recorded FROM beacon_aster limit 1; > Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "4cd5263c-039d-4e04-a4c7-2b31c5bd4139" > endpoint { > address: "mfs101.qa.lab" > user_port: 31010 > control_port: 31011 > data_port: 31012 > } > error_type: 0 > message: "Failure while running fragment. < IllegalArgumentException:[ Invalid format: "2012-09-25 00:00:27.132 20120906.02 60f2761d0e6192a8830..." is malformed at " 20120906.02 60f2761d0e6192a8830..." ]" > ] > Error: exception while executing query (state=,code=0) -- This message was sent by Atlassian JIRA (v6.2#6252)