Replace deprecated driver ru.yandex.clickhouse.ClickHouseDriver#10801
Replace deprecated driver ru.yandex.clickhouse.ClickHouseDriver#10801ebyhr merged 3 commits intotrinodb:masterfrom
Conversation
|
Questions:
|
No. People generally don't change defaults and hence we'll never know if there are issues with the newer driver. We should default to newer driver and if people run into issues they have the escape hatch using the config.
IMO we should.
The driver version is fixed at compile time so I don't see any way someone could load an older JDBC driver version. Can you expand a bit more on what scenario are you thinking of here? |
I'm actually asking these questions because I want to know if I'm doing the right thing by adding the |
Why does the error occur? Because the new driver does not support ClickHouse versions lower than 20.7 (you can find the ClickHouse versions supported by the new driver at https://github.com/ClickHouse/clickhouse-jdbc). |
Imagine if |
@hashhar |
plugin/trino-clickhouse/src/main/java/io/trino/plugin/clickhouse/ClickHouseClient.java
Show resolved
Hide resolved
plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestingClickHouseServer.java
Outdated
Show resolved
Hide resolved
plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestingClickHouseServer.java
Outdated
Show resolved
Hide resolved
plugin/trino-clickhouse/src/main/java/io/trino/plugin/clickhouse/ClickHouseClientModule.java
Outdated
Show resolved
Hide resolved
...n/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestClickHouseConnectorTest.java
Outdated
Show resolved
Hide resolved
5d430ee to
b3df3b0
Compare
plugin/trino-clickhouse/src/main/java/io/trino/plugin/clickhouse/ClickHouseClientModule.java
Outdated
Show resolved
Hide resolved
plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/ClickHouseQueryRunner.java
Outdated
Show resolved
Hide resolved
...no-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestClickHouseConnectorSmokeTest.java
Outdated
Show resolved
Hide resolved
...n/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestClickHouseConnectorTest.java
Outdated
Show resolved
Hide resolved
plugin/trino-clickhouse/src/test/java/io/trino/plugin/clickhouse/TestClickHouseTypeMapping.java
Outdated
Show resolved
Hide resolved
plugin/trino-clickhouse/src/main/java/io/trino/plugin/clickhouse/ClickHouseConfig.java
Outdated
Show resolved
Hide resolved
plugin/trino-clickhouse/src/main/java/io/trino/plugin/clickhouse/ClickHouseConfig.java
Outdated
Show resolved
Hide resolved
b3df3b0 to
d42510b
Compare
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@trino.io. For more information, see https://github.com/trinodb/cla. |
|
@ebyhr Please recheck my CLA. I changed my github account name yesterday, now I changed it back. |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
I'll update upstream. |
|
Going to fix in #10886 |
|
Related issue #10870 https://github.com/trinodb/trino/runs/5018336880?check_suite_focus=true Update: I will update the upstream and re-test it. |
d42510b to
8f59446
Compare
The new ClickHouse Driver (`com.clickhouse.jdbc.ClickHouseDriver`) returns a different `jdbcTypeName` than the old ClickHouse Driver (`ru.yandex.clickhouse.ClickHouseDriver`). And we need to be compatible with the behavior of the new Driver.
The driver `ru.yandex.clickhouse.ClickHouseDriver` has been marked as deprecated. Also everything in package `ru.yandex.clickhouse` will be removed starting from 0.4.0.
8f59446 to
180e74b
Compare
Updated upstream and re-pushed. |
|
Merged, thanks! |
Fixes #10541
It is a continuation of #10559.