|
| 1 | +## 0.9.3 |
| 2 | + |
| 3 | +### Important Changes |
| 4 | +- [jdbc-v2] SQL parser from v1 is ported to v2 to address multiple issues with SQL parsing. The ANTLR4-based parser is |
| 5 | +still an option and will be developed further. The main difference between parses is completeness of their grammar: |
| 6 | +JavaCC grabs only needed information and skips parsing of the rest (what makes it work for most cases) while ANTLR4 |
| 7 | +has more complete grammar and can detect type of some complex statements more accurate than JavaCC. |
| 8 | +To use it set `com.clickhouse.jdbc.DriverProperties#SQL_PARSER` to `ANTLR4`. |
| 9 | + (https://github.com/ClickHouse/clickhouse-java/pull/2579). This fixes issue: |
| 10 | + - https://github.com/ClickHouse/clickhouse-java/issues/2574 |
| 11 | + - https://github.com/ClickHouse/clickhouse-java/issues/2568 |
| 12 | + - https://github.com/ClickHouse/clickhouse-java/issues/2537 |
| 13 | + - https://github.com/ClickHouse/clickhouse-java/issues/2595 |
| 14 | + - https://github.com/ClickHouse/clickhouse-java/issues/2617 |
| 15 | + - https://github.com/ClickHouse/clickhouse-java/issues/2569 |
| 16 | + - https://github.com/ClickHouse/clickhouse-java/issues/2570 |
| 17 | + - https://github.com/ClickHouse/clickhouse-java/issues/2571 |
| 18 | + - https://github.com/ClickHouse/clickhouse-java/issues/2572 |
| 19 | + - https://github.com/ClickHouse/clickhouse-java/issues/2573 |
| 20 | + - https://github.com/ClickHouse/clickhouse-java/issues/2609 |
| 21 | + - https://github.com/ClickHouse/clickhouse-java/issues/2527 |
| 22 | + |
| 23 | +- [repo] New artifact `clickhouse-jdbc-all` added to address issue when maven package qualifiers may not be used. |
| 24 | +This artifact should is a copy of `clickhouse-jdbc:all` but should be used only when required. (https://github.com/ClickHouse/clickhouse-java/issues/2625) |
| 25 | + |
| 26 | +### Improvements |
| 27 | +- [client-v2] Added `getShortArray()` and `getStringArray()` to `ClickHouseBinaryFormatReader`. (https://github.com/ClickHouse/clickhouse-java/pull/2604) |
| 28 | +- [client-v2] Added `result_rows` and `elapsed_time` to summary object. (https://github.com/ClickHouse/clickhouse-java/pull/1633/files) |
| 29 | + |
| 30 | +### Bug Fixes |
| 31 | +- [jdbc-v2] Fixed issue with `maxRows` in `Statement` when additional settings were used to limit result set size. |
| 32 | +It caused problems with read-only users because such users may not change settings in most cases. Now when `maxRows` is |
| 33 | +set then `ResultSet` will skip extra rows. (https://github.com/ClickHouse/clickhouse-java/issues/2582) |
| 34 | +- [jdbc-v2] Fixed issue with driver version. Previously version of a library was converted to minor and major version. |
| 35 | +But this approach doesn't work well with `0.9.x` versions. Now major and minor versions are combined by shifting major. |
| 36 | +Patch version becomes a minor version. (https://github.com/ClickHouse/clickhouse-java/issues/2410) |
| 37 | +- [jdbc-v2, client-v2] Fixed converting different data types to a string. For example, there was an issue with IP |
| 38 | +address when `toString()` was used and returned `\0.0.0.0` instead of `0.0.0.0`. (https://github.com/ClickHouse/clickhouse-java/issues/2575) |
| 39 | +- [jdbc-v2] Fixed issues around spatial data (GEO types). (https://github.com/ClickHouse/clickhouse-java/issues/2577) |
| 40 | +- [client-v2] Fixed issue with current user name. If user name is set then it will be used event after reading |
| 41 | +server context. (https://github.com/ClickHouse/clickhouse-java/issues/2247) |
| 42 | +- [client-v2] Fixed issue with network timeout settings when default value failed to be cast to Long. (https://github.com/ClickHouse/clickhouse-java/issues/2597) |
| 43 | +- [jdbc-v2] Fixed getting metadata for nullable columns. (https://github.com/ClickHouse/clickhouse-java/issues/2586) |
| 44 | +- [jdbc-v2, client-v2] Fixed issues related to reading JSON data type. Fixed reading JSON columns with arrays. Previously was causing exceptions like |
| 45 | +`com.clickhouse.client.api.ClientException: Unsupported data type with tag 101 at ...` |
| 46 | +(https://github.com/ClickHouse/clickhouse-java/issues/2598, https://github.com/ClickHouse/clickhouse-java/issues/2593, |
| 47 | + https://github.com/ClickHouse/clickhouse-java/issues/2613, https://github.com/ClickHouse/clickhouse-java/issues/2102) |
| 48 | +- [client-v2] Fixed configuration parameter type for `socket_linger` to match documentation. (https://github.com/ClickHouse/clickhouse-java/issues/2524) |
| 49 | +- [client-v2] Fixed handling exceptions in http client code. Now response object is always closed to prevent connection leaking. (https://github.com/ClickHouse/clickhouse-java/pull/2615) |
| 50 | +- [jdbc-v2, client-v2] Fixed issue with duplicate column names in a result set. (https://github.com/ClickHouse/clickhouse-java/issues/2459, https://github.com/ClickHouse/clickhouse-java/issues/2336) |
| 51 | +- [jdbc-v2] Fixed ANTLR4 parse issue with `filter` clause along with aggregate function. (https://github.com/ClickHouse/clickhouse-java/pull/2631) |
| 52 | + |
1 | 53 | ## 0.9.2 |
2 | 54 |
|
3 | 55 | ### Improvements |
|
0 commit comments