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 E932717C03 for ; Mon, 31 Aug 2015 20:35:45 +0000 (UTC) Received: (qmail 62845 invoked by uid 500); 31 Aug 2015 20:35:45 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 62813 invoked by uid 500); 31 Aug 2015 20:35:45 -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 62801 invoked by uid 99); 31 Aug 2015 20:35:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2015 20:35:45 +0000 Date: Mon, 31 Aug 2015 20:35:45 +0000 (UTC) From: "Daniel Barclay (Drill) (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-3566) Calling Connection.prepareStatement throws a ClassCastException 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-3566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Barclay (Drill) updated DRILL-3566: ------------------------------------------ Assignee: Deneche A. Hakim (was: Parth Chandra) > Calling Connection.prepareStatement throws a ClassCastException > --------------------------------------------------------------- > > Key: DRILL-3566 > URL: https://issues.apache.org/jira/browse/DRILL-3566 > Project: Apache Drill > Issue Type: Bug > Components: Client - JDBC > Reporter: Rahul Challapalli > Assignee: Deneche A. Hakim > Priority: Blocker > Fix For: 1.2.0 > > > Git Commit # : 65935db8d01b95a7a3107835d7cd5e61220e2f84 > I am hitting the below exception when using Connection.prepareStatement without binding any parameters > {code} > PreparedStatement stmt = con.prepareStatement(DRILL_SAMPLE_QUERY); > Exception in thread "main" java.lang.ClassCastException: org.apache.drill.jdbc.impl.DrillJdbc41Factory$DrillJdbc41PreparedStatement cannot be cast to org.apache.drill.jdbc.impl.DrillStatementImpl > at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newResultSet(DrillJdbc41Factory.java:106) > at org.apache.drill.jdbc.impl.DrillJdbc41Factory.newResultSet(DrillJdbc41Factory.java:1) > at net.hydromatic.avatica.AvaticaConnection.executeQueryInternal(AvaticaConnection.java:397) > at net.hydromatic.avatica.AvaticaPreparedStatement.executeQuery(AvaticaPreparedStatement.java:77) > at com.incorta.trails.DrillTest.query(DrillTest.java:33) > at com.incorta.trails.DrillTest.main(DrillTest.java:12) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)