Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

env:
CHC_BRANCH: "main"
CHC_VERSION: "0.7.2"
CHC_VERSION: "0.8.0"
CH_VERSION: "24.8"

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
version:
description: "Release version"
required: true
default: "0.7.2-SNAPSHOT"
default: "0.8.0-SNAPSHOT"

env:
CH_VERSION: "24.8"
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Latest

## 0.8.0

### Highlights
- 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.

Expand All @@ -11,6 +12,18 @@
- `jdbc-v2` - Removed support for Named Parameters. Not part of the JDBC spec
- `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.

### New Features
- [client-v2, jdbc-v2] - Added support for Bearer token authentication like JWT. Now it is possible to specify encoded token while
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)
- [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)

### Bug Fixes
- [client-v2] - Fixed construction of `User-Agent` header. Prev. implementation uses `class.getPackage().getImplementationVersion()` what returns
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)
- [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.
Please read the issue for more details. (https://github.com/ClickHouse/clickhouse-java/issues/1994)
- [client-v2] - Client doesn't close provided executor anymore letting application close it instead. (https://github.com/ClickHouse/clickhouse-java/issues/1956)
- [client-v2] - Removed unnecessary initialization to make startup time shorter. (https://github.com/ClickHouse/clickhouse-java/issues/2032)

## 0.7.2

Expand Down
4 changes: 2 additions & 2 deletions examples/client-v2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
</repositories>

<properties>
<project.current.year>2024</project.current.year>
<project.current.year>2025</project.current.year>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<clickhouse-java.version>0.7.2-SNAPSHOT</clickhouse-java.version>
<clickhouse-java.version>0.8.0-SNAPSHOT</clickhouse-java.version>

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

Expand Down
4 changes: 2 additions & 2 deletions examples/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

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

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

Expand Down
2 changes: 1 addition & 1 deletion examples/demo-kotlin-service/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ ktor_version=2.3.12
kotlin_version=2.0.20
logback_version=1.4.14

ch_java_client_version=0.7.2
ch_java_client_version=0.8.0
2 changes: 1 addition & 1 deletion examples/demo-service/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

ch_java_client_version=0.7.2
ch_java_client_version=0.8.0
2 changes: 1 addition & 1 deletion examples/jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<clickhouse-java.version>0.7.2-SNAPSHOT</clickhouse-java.version>
<clickhouse-java.version>0.8.0-SNAPSHOT</clickhouse-java.version>
<hikaricp.version>4.0.3</hikaricp.version>
<apache-httpclient.version>5.2.1</apache-httpclient.version>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static void usedPooledConnection(String url, Properties properties) throws SQLEx
}

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

try (Connection conn = DriverManager.getConnection(url, properties)) {
try (Statement stmt = conn.createStatement()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void testGetMajorVersion() {
@Test(groups = { "integration" })
public void testGetMinorVersion() {
Driver driver = new Driver();
Assert.assertEquals(driver.getMinorVersion(), 7);
Assert.assertEquals(driver.getMinorVersion(), 8);
}

@Test(groups = { "integration" })
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
</distributionManagement>

<properties>
<revision>0.7.2-SNAPSHOT</revision>
<project.current.year>2024</project.current.year>
<revision>0.8.0-SNAPSHOT</revision>
<project.current.year>2025</project.current.year>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

Expand Down
Loading