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 822161004D for ; Tue, 28 Apr 2015 21:36:06 +0000 (UTC) Received: (qmail 59061 invoked by uid 500); 28 Apr 2015 21:36:06 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 59030 invoked by uid 500); 28 Apr 2015 21:36:06 -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 59020 invoked by uid 99); 28 Apr 2015 21:36:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2015 21:36:06 +0000 Date: Tue, 28 Apr 2015 21:36:06 +0000 (UTC) From: "Chun Chang (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (DRILL-2668) CAST to FLOAT with numeric literal yields DOUBLE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-2668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chun Chang closed DRILL-2668. ----------------------------- Assignee: Chun Chang (was: Daniel Barclay (Drill)) fix checked in with new unit test covering this. > CAST to FLOAT with numeric literal yields DOUBLE > ------------------------------------------------ > > Key: DRILL-2668 > URL: https://issues.apache.org/jira/browse/DRILL-2668 > Project: Apache Drill > Issue Type: Bug > Components: Functions - Drill > Reporter: Daniel Barclay (Drill) > Assignee: Chun Chang > Attachments: DRILL-2668.1.patch.txt > > > Casting a numeric literal to FLOAT results in type DOUBLE rather than type FLOAT. > Currently (before DRILL-2613 is fixed), querying for "CAST (1.1 AS FLOAT)" and reading the value using ResultSet.getFloat(...) yields an error about not allowed to use getFloat(...) for a FLOAT8 vector. -- This message was sent by Atlassian JIRA (v6.3.4#6332)