Skip to content

Commit 616ddb8

Browse files
authored
Merge pull request #1848 from ClickHouse/pre_0.7.0
Pre 0.7.0
2 parents 18a6550 + de62ebe commit 616ddb8

File tree

10 files changed

+57
-10
lines changed

10 files changed

+57
-10
lines changed

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
env:
1414
CHC_BRANCH: "main"
15-
CHC_VERSION: "0.6.5"
15+
CHC_VERSION: "0.7.0"
1616

1717
jobs:
1818
nightly:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
version:
77
description: "Release version"
88
required: true
9-
default: "0.6.5-SNAPSHOT"
9+
default: "0.7.0-SNAPSHOT"
1010

1111
jobs:
1212
release:

CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
11
## Latest
22

3+
## 0.7.0
4+
5+
### Deprecations
6+
- Following deprecated components are removed:
7+
- clickhouse-cli-client
8+
- clickhouse-grpc-client
9+
10+
### Important Changes
11+
- [client-v2] New transport layer implementation is used by default. It is still possible to switch back
12+
using old implementation by setting `com.clickhouse.client.api.Client.Builder#useNewImplementation` to `false`. (https://github.com/ClickHouse/clickhouse-java/pull/1847)
13+
14+
### New Features
15+
- [client-v2] Now there is an easy way to set custom HTTP headers globally for client and per operation.
16+
See `com.clickhouse.client.api.Client.Builder.httpHeader(java.lang.String, java.lang.String)` for details. (https://github.com/ClickHouse/clickhouse-java/issues/1782)
17+
- [client-v2] Now there is a way to set any server settings globally for client and per operation.
18+
See `com.clickhouse.client.api.Client.Builder.serverSetting(java.lang.String, java.lang.String)` for details. (https://github.com/ClickHouse/clickhouse-java/issues/1782)
19+
- [client-v2] Added support for writing AggregateFunction values (bitmap serialization). !! Reading is not
20+
supported but will be added in the next release. (https://github.com/ClickHouse/clickhouse-java/pull/1814)
21+
- [r2dbc] Defer connection creation. This allows pool to create a new instance on every subscription,
22+
instead of always returning the same one. (https://github.com/ClickHouse/clickhouse-java/pull/1810)
23+
24+
### Performance Improvements
25+
- [client-v2] Improved reading fixed length data like numbers. It is possible to configure readers to
26+
use pre-allocated buffers to avoid memory allocation for each data row/block. Significantly reduces GC pressure.
27+
See `com.clickhouse.client.api.Client.Builder.allowBinaryReaderToReuseBuffers` for details. (https://github.com/ClickHouse/clickhouse-java/pull/1816)
28+
- [client-v2] New API method introduced to read data directly to a POJO. Deserializers for POJO classes are compiled into
29+
bytecode (with help of https://asm.ow2.io/ library) and optimized for each schema. It is great performance boost
30+
because data is read without copying it into temporary structures. Code can be optimized by JVM while runtime as SerDe
31+
code is implemented without reflection using JVM bytecode. Using bytecode makes handling primitive types without values boxing. (https://github.com/ClickHouse/clickhouse-java/pull/1794,
32+
https://github.com/ClickHouse/clickhouse-java/pull/1826)
33+
- [client-v2] Optimized reading columns - internally data is read into map of column-values. It is done
34+
to allow reading same column more than once. Previously map was cleared each row what caused a lot
35+
internal objects creation. Now values are overridden because schema doesn't change between rows. (https://github.com/ClickHouse/clickhouse-java/pull/1795)
36+
37+
### Documentation
38+
- [client-v2] Added example for Kotlin (https://github.com/ClickHouse/clickhouse-java/pull/1793)
39+
- [doc] Main documentation on official ClickHouse website is updated. Each client has its own page with detailed information now.
40+
Added documentation for the Client V2. See https://clickhouse.com/docs/en/integrations/java.
41+
42+
### Bug Fixes
43+
- [client-v2] Fix for cases when missing operation metrics were causing NPE. (https://github.com/ClickHouse/clickhouse-java/pull/1846)
44+
- [client-v2] Fix for handling empty result by BinaryFormat readers. (https://github.com/ClickHouse/clickhouse-java/pull/1845)
45+
- [jdbc] Content of an artifact 'clickhouse-jdbc-{version}-all.jar' is fixed and contains all required classes from `clickhouse-client`
46+
and `clickhouse-data`. (https://github.com/ClickHouse/clickhouse-java/pull/1842)
47+
- [client-v1, jdbc] Endpoints definition parsing fixed to grub properties correctly. Now even properties with key-value
48+
pairs are supported. (https://github.com/ClickHouse/clickhouse-java/pull/1841, https://github.com/ClickHouse/clickhouse-java/issues/1665)
49+
350
## 0.6.5
451

552
### Deprecations

examples/client-v2/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6565
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
6666

67-
<clickhouse-java.version>0.6.5-SNAPSHOT</clickhouse-java.version>
67+
<clickhouse-java.version>0.7.0-SNAPSHOT</clickhouse-java.version>
6868
<apache-httpclient.version>5.2.1</apache-httpclient.version>
6969

7070
<compiler-plugin.version>3.8.1</compiler-plugin.version>

examples/client/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6767
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
6868

69-
<clickhouse-java.version>0.6.5-SNAPSHOT</clickhouse-java.version>
69+
<clickhouse-java.version>0.7.0-SNAPSHOT</clickhouse-java.version>
7070
<!-- Nightly snapshot version from https://s01.oss.sonatype.org/content/repositories/snapshots/ or latest from local -->
71-
<!-- <clickhouse-java.version>0.6.4-SNAPSHOT</clickhouse-java.version>-->
71+
<!-- <clickhouse-java.version>0.7.0-SNAPSHOT</clickhouse-java.version>-->
7272

7373
<apache-httpclient.version>5.2.1</apache-httpclient.version>
7474

examples/demo-kotlin-service/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies {
3333
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")
3434

3535
// https://mvnrepository.com/artifact/com.clickhouse/client-v2
36-
implementation("com.clickhouse:client-v2:0.6.5-SNAPSHOT")
36+
implementation("com.clickhouse:client-v2:0.7.0-SNAPSHOT")
3737

3838
// http client used by clickhouse client
3939
implementation("org.apache.httpcomponents.client5:httpclient5:5.3.1")

examples/demo-service/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dependencies {
2929

3030
// -- clickhouse dependencies
3131
// Main dependency
32-
implementation("com.clickhouse:client-v2:0.6.5-SNAPSHOT") // nightly build
32+
implementation("com.clickhouse:client-v2:0.7.0-SNAPSHOT") // nightly build
3333
// implementation("com.clickhouse:client-v2:0.6.5") // stable version
3434
// http client used by clickhouse client
3535
implementation("org.apache.httpcomponents.client5:httpclient5:5.3.1")

examples/jdbc/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6767
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
6868

69-
<clickhouse-java.version>0.6.5-SNAPSHOT</clickhouse-java.version>
69+
<clickhouse-java.version>0.7.0-SNAPSHOT</clickhouse-java.version>
7070
<hikaricp.version>4.0.3</hikaricp.version>
7171
<apache-httpclient.version>5.2.1</apache-httpclient.version>
7272

examples/r2dbc/clickhouse-r2dbc-spring-webflux-sample/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<properties>
1515
<maven.compiler.source>1.8</maven.compiler.source>
1616
<maven.compiler.target>1.8</maven.compiler.target>
17-
<clickhouse-java.version>0.6.0</clickhouse-java.version>
17+
<clickhouse-java.version>0.7.0-SNAPSHOT</clickhouse-java.version>
1818
<spring-boot-starter.version>2.7.18</spring-boot-starter.version>
1919
</properties>
2020

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</distributionManagement>
8080

8181
<properties>
82-
<revision>0.6.5-SNAPSHOT</revision>
82+
<revision>0.7.0-SNAPSHOT</revision>
8383
<project.current.year>2024</project.current.year>
8484
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
8585
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

0 commit comments

Comments
 (0)