Skip to content

Commit 21417e4

Browse files
committed
Updated version and changelog
1 parent 18a6550 commit 21417e4

File tree

10 files changed

+52
-10
lines changed

10 files changed

+52
-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: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
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+
- [doc] Main documentation on official ClickHouse website is updated. See https://clickhouse.com/docs/en/integrations/java.
14+
Each client has its own page with detailed information. Added documentation for client v2.
15+
16+
### New Features
17+
- [client-v2] Now there is an easy way to set custom header globally for client and per operation.
18+
See `com.clickhouse.client.api.Client.Builder.httpHeader(java.lang.String, java.lang.String)` for details. (https://github.com/ClickHouse/clickhouse-java/issues/1782)
19+
- [client-v2] Not there is a way to set any server settings globally for client and per operation.
20+
See `com.clickhouse.client.api.Client.Builder.serverSetting(java.lang.String, java.lang.String)` for details. (https://github.com/ClickHouse/clickhouse-java/issues/1782)
21+
- [client-v2] Added support for writing AggregateFunction values (bitmap serialization). !! Reading is not
22+
supported but will be added in next release. (https://github.com/ClickHouse/clickhouse-java/pull/1814)
23+
- [r2dbc] Defer connection creation. This allows pool to create a new instance on every subscription,
24+
instead of always returning the same one. (https://github.com/ClickHouse/clickhouse-java/pull/1810)
25+
26+
### Performance Improvements
27+
- [client-v2] Improved reading fixed length data like numbers. It is possible to configure readers to
28+
use pre-allocated buffers to avoid memory allocation for each data row/block.
29+
See `com.clickhouse.client.api.Client.Builder.allowBinaryReaderToReuseBuffers` for details. (https://github.com/ClickHouse/clickhouse-java/pull/1816)
30+
- [client-v2] New query method introduced to read data into a POJO. POJO deserializers are compiled into
31+
bytecode (with help of https://asm.ow2.io/ library) and optimized for each schema. It is great performance boost
32+
because data is read without additional copies. As serde code is implemented without reflection using JVM bytecode
33+
then code can be optimized by JVM while runtime. Using ASM allows handle primitive types without boxing. (https://github.com/ClickHouse/clickhouse-java/pull/1794,
34+
https://github.com/ClickHouse/clickhouse-java/pull/1826)
35+
36+
37+
### Bug Fixes
38+
- [client-v2] Fix for case when missing operation metrics were causing NPE. (https://github.com/ClickHouse/clickhouse-java/pull/1846)
39+
- [client-v2] Fix for handling empty result by BinaryFormat readers. (https://github.com/ClickHouse/clickhouse-java/pull/1845)
40+
- [jdbc] Content of an artifact 'clickhouse-jdbc-{version}-all.jar' is fixed and contains all required classes from `clickhouse-client`
41+
and `clickhouse-data`. (https://github.com/ClickHouse/clickhouse-java/pull/1842)
42+
- [client-v1, jdbc] Endpoints definition parsing fixed to grub properties correctly. Now even properties with key-value
43+
pairs are supported. (https://github.com/ClickHouse/clickhouse-java/pull/1841, https://github.com/ClickHouse/clickhouse-java/issues/1665)
44+
345
## 0.6.5
446

547
### 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)