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 7961411A47 for ; Mon, 28 Jul 2014 20:46:01 +0000 (UTC) Received: (qmail 93149 invoked by uid 500); 28 Jul 2014 20:46:01 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 93122 invoked by uid 500); 28 Jul 2014 20:46:01 -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 93113 invoked by uid 99); 28 Jul 2014 20:46:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2014 20:46:01 +0000 X-ASF-Spam-Status: No, hits=-2000.6 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, 28 Jul 2014 20:46:00 +0000 Received: (qmail 91644 invoked by uid 99); 28 Jul 2014 20:45:40 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2014 20:45:40 +0000 Date: Mon, 28 Jul 2014 20:45:40 +0000 (UTC) From: "Rahul Challapalli (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1213) Casting to decimal on text files is not working 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-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rahul Challapalli updated DRILL-1213: ------------------------------------- Attachment: test.tbl This bug could actually be the root cause for other issues we are seeing with running TPCH queries on top of text data Below jiras could be related to this DRILL-1211 DRILL-1210 DRILL-1209 DRILL-1208 DRILL-1184 > Casting to decimal on text files is not working > ----------------------------------------------- > > Key: DRILL-1213 > URL: https://issues.apache.org/jira/browse/DRILL-1213 > Project: Apache Drill > Issue Type: Bug > Components: Functions - Drill, Storage - Text & CSV > Reporter: Rahul Challapalli > Attachments: test.tbl > > > git.commit.id.abbrev=caa8b78 > USING DECIMAL : > create view cast_dec as select cast(columns[0] as decimal(10,5)) from `temp.tbl`; > select * from cast_dec; > +------------+ > | EXPR$0 | > +------------+ > | 0 | > | 0 | > +------------+ > USING DOUBLE : > create view cast_dbl as select cast(columns[0] as double) from `temp.tbl`; > select * from cast_dbl; > +------------+ > | EXPR$0 | > +------------+ > | 0.01 | > | 0.05 | > +------------+ > I attached the text file used. -- This message was sent by Atlassian JIRA (v6.2#6252)