ClickHouse JDBC Db session is invalid

Hi everyone!

When I use the following driver, I can’t connect to ClickHouse without specifying the compress=0 parameter because it says db session is invalid:

When I use the following driver, I can connect without any parameters:

This is my JDBC url:

What’s the difference between the two?

Hi @Khyle_Vincent_C, welcome to the KNIME forum.

This sounds more like a Clickhouse question than a KNIME one.

Are you able to point us to any clickhouse jdbc documentation (eg you presumably got some guidance somewhere that led you to the “compress=0” parameter), which might help answer the question as to why it is required?

Have you tried using those two drivers outside of KNIME with another opensource jdbc tool such as DBeaver Community, to see if it behaves any differently?

From a brief web search, I think that the difference in the drivers is the protocols used to access the database. One is likely to be a native jdbc driver whilst the other interacts with the database via http (using a REST api).

1 Like