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 7D63A11CD4 for ; Mon, 18 Aug 2014 02:54:43 +0000 (UTC) Received: (qmail 9089 invoked by uid 500); 18 Aug 2014 02:54:42 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 9061 invoked by uid 500); 18 Aug 2014 02:54:42 -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 9051 invoked by uid 99); 18 Aug 2014 02:54:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2014 02:54:42 +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, 18 Aug 2014 02:54:20 +0000 Received: (qmail 8950 invoked by uid 99); 18 Aug 2014 02:54:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2014 02:54:18 +0000 Date: Mon, 18 Aug 2014 02:54:18 +0000 (UTC) From: "Jacques Nadeau (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1301) Fail to query from hive tables that have decimal columns 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-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Nadeau updated DRILL-1301: ---------------------------------- Assignee: Aditya Kishore > Fail to query from hive tables that have decimal columns > -------------------------------------------------------- > > Key: DRILL-1301 > URL: https://issues.apache.org/jira/browse/DRILL-1301 > Project: Apache Drill > Issue Type: Bug > Components: Storage - Hive > Affects Versions: 0.5.0 > Reporter: Krystal > Assignee: Aditya Kishore > Fix For: 0.5.0 > > > git.commit.id.abbrev=687b9b0 > I have a table in hive with the following schema: > hive> describe voter_test; > OK > voter_id int > name varchar(30) > age tinyint > registration string > contributions decimal(6,2) > voterzone smallint > create_time timestamp > When I run any select against this table from drill, it fails with parsing error: > 0: jdbc:drill:schema=hive> select * from voter_test limit 5; > Query failed: Failure while parsing sql. Error: ',', ':', or ';' expected at position 7 from 'decimal(6,2)' [0:decimal, 7:(, 8:6, 9:,, 10:2, 11:)] [2a97a3ae-b9cd-409b-bab6-359febb023b3] > Error: exception while executing query: Failure while trying to get next result batch. (state=,code=0) > I went back to hive and created another table using float instead of decimal for the contributions field and the queries against this table run successfully. > hive> describe voter_test1; > OK > voter_id int > name varchar(30) > age tinyint > registration string > contributions float > voterzone smallint > create_time timestamp -- This message was sent by Atlassian JIRA (v6.2#6252)