testcontainers-java
testcontainers-java copied to clipboard
ClickHouse uses new driver if it is available and version is compatible
A replacement for #5666 (related to the now-closed #6232). Now, ClickHouseContainer picks up the new com.clickhouse.jdbc.ClickHouseDriver driver if it is available and the version tag is 20.7 or later (as supported by the driver), otherwise it falls back to the legacy ru.yandex.clickhouse.ClickHouseDriver driver.
Oh, I forgot to run spotless after making changes. (Actually, the only violation were unsorted imports.)
Now, it's probably ready.
Thanks for your contribution @trolley813 ! This is now is main branch and it will be available in the next release.