love1693294577 removed a comment on issue #618: [CALCITE-2157] ClickHouse 
dialect implementation.
URL: https://github.com/apache/calcite/pull/618#issuecomment-517107274
 
 
   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: 'druid',
           jdbcPassword: 'diurd'
         }
       }
     ]
   }
   
   
   
   
   

----------------------------------------------------------------
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