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: clickhouse-jdbc-0.6.2.jar
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).