Skip to content

Commit e9b01c6

Browse files
authored
Merge pull request #2109 from ClickHouse/pre_0.8.0
Updated version for the new release
2 parents 063bafe + a94a487 commit e9b01c6

File tree

11 files changed

+26
-13
lines changed

11 files changed

+26
-13
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.2"
15+
CHC_VERSION: "0.8.0"
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.2-SNAPSHOT"
9+
default: "0.8.0-SNAPSHOT"
1010

1111
env:
1212
CH_VERSION: "24.8"

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Latest
22

33
## 0.8.0
4+
45
### Highlights
56
- We've updated `ClickHouseDriver` and `ClickHouseDataSource` to default to using the new (`jdbc-v2`) implementation of the JDBC driver. Setting `clickhouse.jdbc.v1=true` will revert this change.
67

@@ -11,6 +12,18 @@
1112
- `jdbc-v2` - Removed support for Named Parameters. Not part of the JDBC spec
1213
- `jdbc-v2` - Removed support for Stream-based `PreparedStatement`. Early version of the driver allowed for non-jdbc usage of `PreparedStatement` - if you desire such options, we recommend looking at client-v2.
1314

15+
### New Features
16+
- [client-v2, jdbc-v2] - Added support for Bearer token authentication like JWT. Now it is possible to specify encoded token while
17+
creating a client and change while runtime using `com.clickhouse.client.api.Client.updateBearerToken`. (https://github.com/ClickHouse/clickhouse-java/issues/1834, https://github.com/ClickHouse/clickhouse-java/issues/1988)
18+
- [client-v2] - Exposed connection pool metrics through Micrometer. It allows to monitor internal connection pool for number of active and leased connections. (https://github.com/ClickHouse/clickhouse-java/issues/1901)
19+
20+
### Bug Fixes
21+
- [client-v2] - Fixed construction of `User-Agent` header. Prev. implementation uses `class.getPackage().getImplementationVersion()` what returns
22+
incorrect title and version when library is shaded. New implementation uses build time information from resource files generated while build. (https://github.com/ClickHouse/clickhouse-java/issues/2007)
23+
- [client-v2] - Fixed multiple issues with handling connectivity disruption. Socket timeout is unlimited by default. Added retry on timeout. Added more information to exception message.
24+
Please read the issue for more details. (https://github.com/ClickHouse/clickhouse-java/issues/1994)
25+
- [client-v2] - Client doesn't close provided executor anymore letting application close it instead. (https://github.com/ClickHouse/clickhouse-java/issues/1956)
26+
- [client-v2] - Removed unnecessary initialization to make startup time shorter. (https://github.com/ClickHouse/clickhouse-java/issues/2032)
1427

1528
## 0.7.2
1629

examples/client-v2/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
</repositories>
5151

5252
<properties>
53-
<project.current.year>2024</project.current.year>
53+
<project.current.year>2025</project.current.year>
5454
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5555
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5656

57-
<clickhouse-java.version>0.7.2-SNAPSHOT</clickhouse-java.version>
57+
<clickhouse-java.version>0.8.0-SNAPSHOT</clickhouse-java.version>
5858

5959
<compiler-plugin.version>3.8.1</compiler-plugin.version>
6060

examples/client/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4141
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
4242

43-
<clickhouse-java.version>0.7.2-SNAPSHOT</clickhouse-java.version>
43+
<clickhouse-java.version>0.8.0-SNAPSHOT</clickhouse-java.version>
4444
<!-- Nightly snapshot version from https://s01.oss.sonatype.org/content/repositories/snapshots/ or latest from local -->
45-
<!-- <clickhouse-java.version>0.7.2</clickhouse-java.version>-->
45+
<!-- <clickhouse-java.version>0.8.0</clickhouse-java.version>-->
4646

4747
<apache-httpclient.version>5.2.1</apache-httpclient.version>
4848

examples/demo-kotlin-service/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ ktor_version=2.3.12
33
kotlin_version=2.0.20
44
logback_version=1.4.14
55

6-
ch_java_client_version=0.7.2
6+
ch_java_client_version=0.8.0
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
ch_java_client_version=0.7.2
2+
ch_java_client_version=0.8.0

examples/jdbc/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4848
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
4949

50-
<clickhouse-java.version>0.7.2-SNAPSHOT</clickhouse-java.version>
50+
<clickhouse-java.version>0.8.0-SNAPSHOT</clickhouse-java.version>
5151
<hikaricp.version>4.0.3</hikaricp.version>
5252
<apache-httpclient.version>5.2.1</apache-httpclient.version>
5353

examples/jdbc/src/main/java/com/clickhouse/examples/jdbc/Basic.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static void usedPooledConnection(String url, Properties properties) throws SQLEx
112112
}
113113

114114
static void setClientSettings(Properties properties){
115-
String url = System.getProperty("chUrl", "jdbc:ch://localhost:18123?jdbc_ignore_unsupported_values=true&socket_timeout=10");
115+
String url = System.getProperty("chUrl", "jdbc:ch://localhost:8123?jdbc_ignore_unsupported_values=true&socket_timeout=10");
116116

117117
try (Connection conn = DriverManager.getConnection(url, properties)) {
118118
try (Statement stmt = conn.createStatement()) {

jdbc-v2/src/test/java/com/clickhouse/jdbc/DriverTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void testGetMajorVersion() {
6868
@Test(groups = { "integration" })
6969
public void testGetMinorVersion() {
7070
Driver driver = new Driver();
71-
Assert.assertEquals(driver.getMinorVersion(), 7);
71+
Assert.assertEquals(driver.getMinorVersion(), 8);
7272
}
7373

7474
@Test(groups = { "integration" })

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181
</distributionManagement>
8282

8383
<properties>
84-
<revision>0.7.2-SNAPSHOT</revision>
85-
<project.current.year>2024</project.current.year>
84+
<revision>0.8.0-SNAPSHOT</revision>
85+
<project.current.year>2025</project.current.year>
8686
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
8787
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
8888

0 commit comments

Comments
 (0)