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:

clickhouse-jdbc-0.6.2.jar

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

clickhouse-jdbc-0.6.2-http.jar

This is my JDBC url:

jdbc:clickhouse://host:8123/test_db

What’s the difference between the two?