Skip to content

Release v0.9.1

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 30 Jul 19:17
· 17 commits to main since this release
9f19d82

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 Time and Time64 data types. (#2487)
  • [client-v2] Added utility methods to format Instant to a DB DateTime format. See com.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.ClickHouseException became a root for
    ServerException and ClientException. com.clickhouse.client.api.ClickHouseException.isRetryable is 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 Reader and GenericRecord return specific types. For example,
    collection instead of Array. (#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 DatabaseMetadata to 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 ArrayValue object was returned as element of a nested array.
    After the fix array values contain primitive types. (#2464, #2340)
  • [jdbc-v2] Fixed JDBC Connection's isValid method returning true all 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)