love1693294577 opened a new pull request #1348: Caused by: 
java.sql.SQLException: Cannot load JDBC driver class 
'ru.yandex.clickhouse.ClickHouseDriver'
URL: https://github.com/apache/calcite/pull/1348
 
 
   Hello, how is your clickhouse used, how can I still not connect, it seems to 
be unable to load the driver
   
   Caused by: java.lang.RuntimeException: java.sql.SQLException: Cannot load 
JDBC driver class 'ru.yandex.clickhouse.ClickHouseDriver'
   at 
org.apache.calcite.adapter.jdbc.JdbcUtils$DialectPool.get(JdbcUtils.java:97)
   at 
org.apache.calcite.adapter.jdbc.JdbcSchema.createDialect(JdbcSchema.java:197)
   at org.apache.calcite.adapter.jdbc.JdbcSchema.create(JdbcSchema.java:133)
   at org.apache.calcite.adapter.jdbc.JdbcSchema.create(JdbcSchema.java:120)
   at org.apache.calcite.adapter.jdbc.JdbcSchema.create(JdbcSchema.java:172)
   at 
org.apache.calcite.adapter.jdbc.JdbcSchema$Factory.create(JdbcSchema.java:560)
   at org.apache.calcite.model.ModelHandler.visit(ModelHandler.java:282)
   ... 18 more
   Caused by: java.sql.SQLException: Cannot load JDBC driver class 
'ru.yandex.clickhouse.ClickHouseDriver'
   at 
org.apache.commons.dbcp2.BasicDataSource.createConnectionFactory(BasicDataSource.java:489)
   at 
org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:599)
   at 
org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:809)
   at 
org.apache.calcite.adapter.jdbc.JdbcUtils$DialectPool.get(JdbcUtils.java:78)
   
   My configuration:
   {
   version: '1.0',
   defaultSchema: 'click',
   schemas: [
   {
   name: 'click',
   type: 'custom',
   factory: 'org.apache.calcite.adapter.jdbc.JdbcSchema$Factory',
   operand: {
   jdbcDriver: 'ru.yandex.clickhouse.ClickHouseDriver',
   jdbcUrl: 'jdbc:clickhouse://XX.XX.XX.XX:8123/default',
   jdbcUser: '',
   jdbcPassword: ''
   }
   }
   ]
   }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to