Skip to content

Commit

Permalink
Merge pull request #1801 from ClickHouse/pre_0.6.5
Browse files Browse the repository at this point in the history
Pre 0.6.5
  • Loading branch information
chernser authored Sep 1, 2024
2 parents 12c921d + 9e0f451 commit cbdbab0
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 9 deletions.
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.6.4"
CHC_VERSION: "0.6.5"

jobs:
nightly:
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.6.4-SNAPSHOT"
default: "0.6.5-SNAPSHOT"

jobs:
release:
Expand Down
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
## Latest

## 0.6.5

### Deprecations
- Following components will be deprecated and removed in 0.7.0 release:
- clickhouse-cli-client
- clickhouse-grpc-client
- Projects cli-client and grpc-client are excluded from release and build.
- No more builds for non-lts Java versions - no more Java 9 release builds.

### Performance Improvements
- [client-v2] `queryAll()` optimized to use less memory (https://github.com/ClickHouse/clickhouse-java/pull/1779)
- [client-v2] `Client.Builder#setClientNetworkBufferSize` introduced to allow increasing a buffer that is used
to transfer data from socket buffer to application memory. When set to >= of send/receive socket buffer size it
significantly reduces number of system calls and improves performance. (https://github.com/ClickHouse/clickhouse-java/pull/1784)

### New Features
- [client-v2] Client will retry on `NoHttpResponseException` when using Apache HTTP client.
It is useful when close/stale connection is leased from connection pool. No client will
retry one more time instead of failing. `Client.Builder#retryOnFailures` and `Client.Builder#setMaxRetries` were
introduced to configure client behavior. (https://github.com/ClickHouse/clickhouse-java/pull/1768)

### Bug Fixes
- [client-v2] Correct timezone used when reading DateTime values. Affects how date/datetime values
are read when `session_timezone` is used (https://github.com/ClickHouse/clickhouse-java/issues/1780)
- [client-v2] Fix reading big integers. Previously was causing incorrect values
(https://github.com/ClickHouse/clickhouse-java/issues/1786)
(https://github.com/ClickHouse/clickhouse-java/issues/1776)
- [client-v2] Fix server compressions when using a client instance concurrently
(https://github.com/ClickHouse/clickhouse-java/pull/1791)
- [client-v2] Fix reading arrays as list. Also affected reading nested arrays (https://github.com/ClickHouse/clickhouse-java/pull/1800)
- [client-v1] Fix handling summary metadata for write operations. Previously was causing empty metadata

## 0.6.4

### Deprecations
Expand Down
2 changes: 1 addition & 1 deletion examples/client-v2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<clickhouse-java.version>0.6.4-SNAPSHOT</clickhouse-java.version>
<clickhouse-java.version>0.6.5-SNAPSHOT</clickhouse-java.version>
<apache-httpclient.version>5.2.1</apache-httpclient.version>

<compiler-plugin.version>3.8.1</compiler-plugin.version>
Expand Down
2 changes: 1 addition & 1 deletion examples/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

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

Expand Down
6 changes: 3 additions & 3 deletions examples/demo-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ dependencies {

// -- clickhouse dependencies
// Main dependency
implementation("com.clickhouse:client-v2:0.6.4-SNAPSHOT") // nightly build
// implementation("com.clickhouse:client-v2:0.6.4") // stable version
implementation("com.clickhouse:client-v2:0.6.5-SNAPSHOT") // nightly build
// implementation("com.clickhouse:client-v2:0.6.5") // stable version
// http client used by clickhouse client
implementation("org.apache.httpcomponents.client5:httpclient5:5.3.1")
// compression dependencies
runtimeOnly("org.apache.commons:commons-compress:1.26.2")
runtimeOnly("org.lz4:lz4-pure-java:1.8.0")
// client V1 if old implementation is needed
// implementation("com.clickhouse:clickhouse-http-client:0.6.3")
// implementation("com.clickhouse:clickhouse-http-client:0.6.5")



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

<clickhouse-java.version>0.6.4-SNAPSHOT</clickhouse-java.version>
<clickhouse-java.version>0.6.5-SNAPSHOT</clickhouse-java.version>
<hikaricp.version>4.0.3</hikaricp.version>
<apache-httpclient.version>5.2.1</apache-httpclient.version>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</distributionManagement>

<properties>
<revision>0.6.4-SNAPSHOT</revision>
<revision>0.6.5-SNAPSHOT</revision>
<project.current.year>2024</project.current.year>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand Down

0 comments on commit cbdbab0

Please sign in to comment.