Skip to content

Commit 75cde09

Browse files
authored
Merge pull request #2047 from ClickHouse/pre_0.7.2
Pre 0.7.2
2 parents 593b9e3 + 8e2cfb7 commit 75cde09

File tree

12 files changed

+55
-75
lines changed

12 files changed

+55
-75
lines changed

.github/workflows/nightly.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
env:
1414
CHC_BRANCH: "main"
15-
CHC_VERSION: "0.7.1"
15+
CHC_VERSION: "0.7.2"
1616
CH_VERSION: "24.8"
1717

1818
jobs:

.github/workflows/release.yml

+1-1
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.7.1-SNAPSHOT"
9+
default: "0.7.2-SNAPSHOT"
1010

1111
env:
1212
CH_VERSION: "24.8"

CHANGELOG.md

+26-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,34 @@
11
## Latest
22

3+
## 0.7.2
4+
5+
### New Components
6+
- `jdbc-v2` - pre-release version of upcoming `clickhouse-jdbc` replacement. Supports basic functionality, works only with `client-v2`.
7+
More information will be available after its release
8+
9+
### Highlights
10+
- [repo] Added shaded packages with requires a set of dependencies. Use `all` classified for `client-v2` full package.
11+
Use `shaded-all` for old jdbc driver.
12+
- [client-v2] New Data Writer API was added. It allows to gain a control over writing data to low-level output stream.
13+
This API makes it possible to write compressed data directly to server. See `com.clickhouse.client.api.Client#insert(java.lang.String, com.clickhouse.client.api.DataStreamWriter, com.clickhouse.data.ClickHouseFormat, com.clickhouse.client.api.insert.InsertSettings)`
14+
(https://github.com/ClickHouse/clickhouse-java/pull/2034)
15+
16+
317
### New Features
4-
- Added basic auth support for proxies. Now you can specify username/password when connecting via a proxy that requires it with HttpURLConnection and Apache HttpClient.
18+
- [client-v2] Added ability to specify client name. It means `User-Agent` will be filled with proper information (https://github.com/ClickHouse/clickhouse-java/pull/1948)
19+
- [client-v2] Implemented statement parameters for `queryAll` and `queryRecords` API methods. (https://github.com/ClickHouse/clickhouse-java/pull/1979)
20+
- [client-v2] Implemented string to number conversion. (https://github.com/ClickHouse/clickhouse-java/pull/2014)
21+
- [client-v1] Added basic auth support for proxies. Now you can specify username/password when connecting via a proxy that requires it with HttpURLConnection and Apache HttpClient.
22+
- [client-v2] Enum columns can be read as string and number. Previously only as number. Now number matching string constant is returned when get as string. (https://github.com/ClickHouse/clickhouse-java/pull/2028)
23+
- [client-v2] Client will load some server context (timezone, user) right after build. (https://github.com/ClickHouse/clickhouse-java/pull/2029)
524

625
### Bug Fixes
7-
- Fix for retrying on `ConnectTimeoutException`
26+
- [jdbc] Fixed default value for `result_overflow_mode` setting. (https://github.com/ClickHouse/clickhouse-java/issues/1932)
27+
- [client-v2] Fixed reading float/double values. Previously was prevented by incorrect overflow check. (https://github.com/ClickHouse/clickhouse-java/issues/1954)
28+
- [client-v2] Fixed issue with enabling client compression. Previously flag was ignore in some cases. (https://github.com/ClickHouse/clickhouse-java/issues/1958)
29+
- [client-v2] Fixed issue with reading `Array(UInt64)` because of incorrect class used to create internal array. (https://github.com/ClickHouse/clickhouse-java/issues/1990)
30+
- [client-v2] Fixed ClickHouseLZ4OutputStream issue of sending empty frame when no data left in uncompressed buffer. (https://github.com/ClickHouse/clickhouse-java/issues/1993)
31+
- [client-v2] Fix handling `ConnectTimeoutException` in retry and wrapping logic. (https://github.com/ClickHouse/clickhouse-java/pull/2015)
832

933
## 0.7.1-patch1
1034

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@ Old client still be used when:
5151

5252
## Important
5353

54-
### Upcomming deprecations:
54+
### Upcoming deprecations:
5555
| Component | Version | Comment |
5656
|--------------------------------|---------|--------------------------------------------------|
5757
| ClickHouse Java v1 | TBC | We'll be deprecating Java v1 in 2025 |
58-
| ClickHouse CLI Client (Java) | 0.7.0 | Please use `clickhouse-client` (see https://clickhouse.com/docs/en/interfaces/cli#clickhouse-client) |
59-
| ClickHouse GRPC Client | 0.7.0 | Please use the ClickHouse http client instead. GRPC protos still available https://github.com/ClickHouse/ClickHouse/tree/master/src/Server/grpc_protos |
6058

6159

6260
## Installation
@@ -77,7 +75,7 @@ Nightly Builds: https://s01.oss.sonatype.org/content/repositories/snapshots/com/
7775

7876
| ClickHouse Version | Client Version | Comment |
7977
|--------------------|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
80-
| Server >= 23.0 | 0.6.2 | |
78+
| Server >= 23.0 | 0.6.2+ | |
8179

8280

8381
### Features

examples/client-v2/pom.xml

+1-12
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@
3434
<tag>HEAD</tag>
3535
</scm>
3636

37-
<issueManagement>
38-
<system>Github</system>
39-
<url>https://github.com/ClickHouse/clickhouse-java/issues</url>
40-
</issueManagement>
41-
42-
<ciManagement>
43-
<system>Github</system>
44-
<url>https://github.com/ClickHouse/clickhouse-java/actions</url>
45-
</ciManagement>
46-
4737
<repositories>
4838
<repository>
4939
<id>central</id>
@@ -64,8 +54,7 @@
6454
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6555
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
6656

67-
<clickhouse-java.version>0.7.1-patch1-SNAPSHOT</clickhouse-java.version>
68-
<apache-httpclient.version>5.3.1</apache-httpclient.version>
57+
<clickhouse-java.version>0.7.2-SNAPSHOT</clickhouse-java.version>
6958

7059
<compiler-plugin.version>3.8.1</compiler-plugin.version>
7160

examples/client/pom.xml

+2-28
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,6 @@
2727
</license>
2828
</licenses>
2929

30-
<developers>
31-
<developer>
32-
<id>zhicwu</id>
33-
<name>Zhichun Wu</name>
34-
<email>zhicwu@gmail.com</email>
35-
<timezone>+8</timezone>
36-
</developer>
37-
</developers>
38-
39-
<scm>
40-
<url>https://github.com/ClickHouse/clickhouse-java</url>
41-
<connection>scm:git@github.com:ClickHouse/clickhouse-java.git</connection>
42-
<developerConnection>scm:git@github.com:ClickHouse/clickhouse-java.git</developerConnection>
43-
<tag>HEAD</tag>
44-
</scm>
45-
46-
<issueManagement>
47-
<system>Github</system>
48-
<url>https://github.com/ClickHouse/clickhouse-java/issues</url>
49-
</issueManagement>
50-
51-
<ciManagement>
52-
<system>Github</system>
53-
<url>https://github.com/ClickHouse/clickhouse-java/actions</url>
54-
</ciManagement>
55-
5630
<repositories>
5731
<repository>
5832
<id>ossrh</id>
@@ -66,9 +40,9 @@
6640
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6741
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
6842

69-
<clickhouse-java.version>0.7.1-patch1-SNAPSHOT</clickhouse-java.version>
43+
<clickhouse-java.version>0.7.2-SNAPSHOT</clickhouse-java.version>
7044
<!-- Nightly snapshot version from https://s01.oss.sonatype.org/content/repositories/snapshots/ or latest from local -->
71-
<!-- <clickhouse-java.version>0.7.1</clickhouse-java.version>-->
45+
<!-- <clickhouse-java.version>0.7.2</clickhouse-java.version>-->
7246

7347
<apache-httpclient.version>5.2.1</apache-httpclient.version>
7448

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ repositories {
2323
mavenCentral()
2424
}
2525

26+
val ch_java_client_version: String by extra
27+
2628
dependencies {
2729
// application dependencies
2830
implementation("io.ktor:ktor-server-core-jvm")
@@ -33,8 +35,8 @@ dependencies {
3335
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")
3436

3537
// https://mvnrepository.com/artifact/com.clickhouse/client-v2
36-
implementation("com.clickhouse:client-v2:0.7.1-patch1-SNAPSHOT:all")
37-
// implementation("com.clickhouse:client-v2:0.7.1-patch1:all") // release version
38+
implementation("com.clickhouse:client-v2:${ch_java_client_version}-SNAPSHOT:all")
39+
// implementation("com.clickhouse:client-v2:${ch_java_client_version}:all") // release version
3840

3941
testImplementation("io.ktor:ktor-server-test-host-jvm")
4042
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")

examples/demo-kotlin-service/gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ kotlin.code.style=official
22
ktor_version=2.3.12
33
kotlin_version=2.0.20
44
logback_version=1.4.14
5+
6+
ch_java_client_version=0.7.2

examples/demo-service/build.gradle.kts

+4-5
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ repositories {
2525
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") // for nightly builds
2626
}
2727

28+
val ch_java_client_version: String by extra
29+
2830
dependencies {
2931

3032
// -- clickhouse dependencies
3133
// Main dependency
32-
implementation("com.clickhouse:client-v2:0.7.1-patch1-SNAPSHOT:all") // local or nightly build
33-
// implementation("com.clickhouse:client-v2:0.7.1-patch1:all") // release version
34-
35-
// -- clickhouse-http-client dependencies if old implementation is needed
36-
// implementation("com.clickhouse:clickhouse-http-client:0.7.1-SNAPSHOT")
34+
implementation("com.clickhouse:client-v2:${ch_java_client_version}-SNAPSHOT:all") // local or nightly build
35+
// implementation("com.clickhouse:client-v2:${ch_java_client_version}:all") // release version
3736

3837
// -- application dependencies
3938
implementation("org.springframework.boot:spring-boot-starter-actuator")
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
ch_java_client_version=0.7.2

examples/jdbc/pom.xml

+1-11
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@
3434
<tag>HEAD</tag>
3535
</scm>
3636

37-
<issueManagement>
38-
<system>Github</system>
39-
<url>https://github.com/ClickHouse/clickhouse-java/issues</url>
40-
</issueManagement>
41-
42-
<ciManagement>
43-
<system>Github</system>
44-
<url>https://github.com/ClickHouse/clickhouse-java/actions</url>
45-
</ciManagement>
46-
4737
<repositories>
4838
<repository>
4939
<id>ossrh</id>
@@ -57,7 +47,7 @@
5747
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5848
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5949

60-
<clickhouse-java.version>0.7.1-patch1-SNAPSHOT</clickhouse-java.version>
50+
<clickhouse-java.version>0.7.2-SNAPSHOT</clickhouse-java.version>
6151
<hikaricp.version>4.0.3</hikaricp.version>
6252
<apache-httpclient.version>5.2.1</apache-httpclient.version>
6353

pom.xml

+9-9
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
</license>
2828
</licenses>
2929

30-
<developers>
31-
<developer>
32-
<id>zhicwu</id>
33-
<name>Zhichun Wu</name>
34-
<email>zhicwu@gmail.com</email>
35-
<timezone>+8</timezone>
36-
</developer>
37-
</developers>
30+
<!-- <developers>-->
31+
<!-- <developer>-->
32+
<!-- <id></id>-->
33+
<!-- <name></name>-->
34+
<!-- <email></email>-->
35+
<!-- <timezone></timezone>-->
36+
<!-- </developer>-->
37+
<!-- </developers>-->
3838

3939
<modules>
4040
<!-- shared -->
@@ -81,7 +81,7 @@
8181
</distributionManagement>
8282

8383
<properties>
84-
<revision>0.7.1-patch1-SNAPSHOT</revision>
84+
<revision>0.7.2-SNAPSHOT</revision>
8585
<project.current.year>2024</project.current.year>
8686
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
8787
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

0 commit comments

Comments
 (0)