New Features
- [client-v2] Added option to set SNI for SSL connections. See
com.clickhouse.client.api.Client.Builder.sslSocketSNI(#2467) - [client-v2, jdbc-v2] Added support for
TimeandTime64data types. (#2487) - [client-v2] Added utility methods to format
Instantto a DB DateTime format. Seecom.clickhouse.client.api.DataTypeUtils.formatInstant(java.time.Instant, com.clickhouse.data.ClickHouseDataType)(#2501, #2456)
Improvements
- [client-v2] Improved exceptions and error handling. The
com.clickhouse.client.api.ClickHouseExceptionbecame a root for
ServerExceptionandClientException.com.clickhouse.client.api.ClickHouseException.isRetryableis added to determine if
exception caused in a retriable state. It means that catching such exception application may repeat operation to fix a
problem. (#2453) - [client-v2] Improved configuration handling. (#2470)
- [client-v2] Custom type hint for the client to make
ReaderandGenericRecordreturn specific types. For example,
collection instead ofArray. (#2476) - [client-v2] Added default port for HTTP and improved endpoint string validation - only one allowed. (#2489)
- [client-v2] Improved handling error response. (#2511)
Bug Fixes
- [client-v2] Fixed metrics to be parsed as Long to avoid integer overflow. Especially for elapsed time in nanos. (#2465)
- [client-v2] Fixed a bug with passing some server settings from JDBC to the Client. (#2359)
- [jdbc-v2] Fixed
DatabaseMetadatato return correct column type. (#2475) - [jdbc-v2] Fixed problem with JDBC URL when Database names that include dash
-were parsed wrong. (#2463) - [jdbc-v2] Fixed problem with nested arrays. Previously
ArrayValueobject was returned as element of a nested array.
After the fix array values contain primitive types. (#2464, #2340) - [jdbc-v2] Fixed JDBC Connection's
isValidmethod returningtrueall the time. (#2472) - [client-v2] Fixed problem with not closed response object when exception happens. That fixes connections leaking. (#1741)
- [jdbc-v2] Fixed a set of issue in
StatementImpl. (#2414) - [jdbc-v2] Fixed a set of issues in
PreparedStatementImpl. (#2418) - [jdbc-v2] Fixed multiple issues linked to parsing statements in JDBC. (#2450, #2451, #2461, #2500, #2493, #2478)
- [jdbc-v2] Fixed result set returning not a DB compliant date/time format. (#2408, #2448)