fengYu created KYLIN-1685:
-----------------------------
Summary: error happens while execute a sql contains '?' using
Statement
Key: KYLIN-1685
URL: https://issues.apache.org/jira/browse/KYLIN-1685
Project: Kylin
Issue Type: Bug
Components: Driver - JDBC
Affects Versions: v1.5.1, v1.2
Reporter: fengYu
Exception happen :
java.sql.SQLException: Error while executing SQL "select * from test_table
where url not in ('http://a.b.com/?a=b')": org.apache.kylin.jdbc.KylinStatement
cannot be cast to org.apache.kylin.jdbc.KylinPreparedStatement
at org.apache.kylin.jdbc.KylinResultSet.execute(KylinResultSet.java:54)
at
org.apache.calcite.avatica.AvaticaConnection$1.execute(AvaticaConnection.java:566)
at org.apache.kylin.jdbc.KylinMeta.prepareAndExecute(KylinMeta.java:79)
at
org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:571)
at
org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:135)
at
org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:186)
at
org.apache.kylin.jdbc.DriverTest.testStatementWithQuestionMask(DriverTest.java:79)
This caused by kylin jdbc will take a sql contain '?' as PreparedStatement and
cast as it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)