You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Daniel Barclay (Drill) (JIRA)" <ji...@apache.org> on 2015/07/29 02:34:04 UTC

[jira] [Updated] (DRILL-3566) Calling Connection.prepareStatement throws a ClassCastException

     [ https://issues.apache.org/jira/browse/DRILL-3566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Barclay (Drill) updated DRILL-3566:
------------------------------------------
    Fix Version/s: 1.2.0

> 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: Daniel Barclay (Drill)
>            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)