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 96F2F18049 for ; Wed, 29 Apr 2015 17:35:06 +0000 (UTC) Received: (qmail 73462 invoked by uid 500); 29 Apr 2015 17:35:06 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 73271 invoked by uid 500); 29 Apr 2015 17:35: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 73140 invoked by uid 99); 29 Apr 2015 17:35:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 17:35:06 +0000 Date: Wed, 29 Apr 2015 17:35:06 +0000 (UTC) From: "Daniel Barclay (Drill) (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-2452) ResultSet.getDouble should not throw an exception when the underlying type is a FLOAT 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-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14519787#comment-14519787 ] Daniel Barclay (Drill) commented on DRILL-2452: ----------------------------------------------- Marked resolved--should be fixed now by DRILL-2613 changes. > ResultSet.getDouble should not throw an exception when the underlying type is a FLOAT > ------------------------------------------------------------------------------------- > > Key: DRILL-2452 > URL: https://issues.apache.org/jira/browse/DRILL-2452 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC > Reporter: Rahul Challapalli > Assignee: Daniel Barclay (Drill) > Fix For: 1.0.0 > > > git.commit.id.abbrev=e92db23 > Currently when we call ResultSet.getDouble(int) and if the underlying column's type is FLOAT, we get the below exception > {code} > org.apache.drill.exec.vector.accessor.AbstractSqlAccessor$InvalidAccessException: Requesting class of type double for an object of type FLOAT4:OPTIONAL is not allowed. > at org.apache.drill.exec.vector.accessor.AbstractSqlAccessor.getDouble(AbstractSqlAccessor.java:62) > at org.apache.drill.exec.vector.accessor.NullableFloat4Accessor.getDouble(NullableFloat4Accessor.java:87) > at org.apache.drill.exec.vector.accessor.BoundCheckingAccessor.getDouble(BoundCheckingAccessor.java:73) > at org.apache.drill.jdbc.AvaticaDrillSqlAccessor.getDouble(AvaticaDrillSqlAccessor.java:101) > at net.hydromatic.avatica.AvaticaResultSet.getDouble(AvaticaResultSet.java:233) > {code} > According to the JDBC spec we should return the double representation of the value -- This message was sent by Atlassian JIRA (v6.3.4#6332)