Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre 0.7.2 #2047

Merged
merged 6 commits into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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.1"
CHC_VERSION: "0.7.2"
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.1-SNAPSHOT"
default: "0.7.2-SNAPSHOT"

env:
CH_VERSION: "24.8"
Expand Down
25 changes: 23 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@
## Latest

## 0.7.2

### New Components
- `jdbc-v2` - pre-release version of upcoming `clickhouse-jdbc` replacement. Supports basic functionality, works only with `client-v2`.
More information will be available after its release

### Highlights
- [repo] Added shaded packages with requires set of dependencies. Use `all` classified for `client-v2` full package.
Use `shaded-all` for old jdbc driver.


### New Features
- 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.
- [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)
- [client-v2] Implemented statement parameters for `queryAll` and `queryRecords` API methods. (https://github.com/ClickHouse/clickhouse-java/pull/1979)
- [client-v2] Implemented string to number conversion. (https://github.com/ClickHouse/clickhouse-java/pull/2014)
- [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.
- [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)
- [client-v2] Client will load some server context (timezone, user) right after build. (https://github.com/ClickHouse/clickhouse-java/pull/2029)

### Bug Fixes
- Fix for retrying on `ConnectTimeoutException`
- [jdbc] Fixed default value for `result_overflow_mode` setting. (https://github.com/ClickHouse/clickhouse-java/issues/1932)
- [client-v2] Fixed reading float/double values. Previously was prevented by incorrect overflow check. (https://github.com/ClickHouse/clickhouse-java/issues/1954)
- [client-v2] Fixed issue with enabling client compression. Previously flag was ignore in some cases. (https://github.com/ClickHouse/clickhouse-java/issues/1958)
- [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)
- [client-v2] Fixed ClickHouseLZ4OutputStream issue of sending empty frame when no data left in uncompressed buffer. (https://github.com/ClickHouse/clickhouse-java/issues/1993)
- [client-v2] Fix handling `ConnectTimeoutException` in retry and wrapping logic. (https://github.com/ClickHouse/clickhouse-java/pull/2015)

## 0.7.1-patch1

Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,10 @@ Old client still be used when:

## Important

### Upcomming deprecations:
### Upcoming deprecations:
| Component | Version | Comment |
|--------------------------------|---------|--------------------------------------------------|
| ClickHouse Java v1 | TBC | We'll be deprecating Java v1 in 2025 |
| ClickHouse CLI Client (Java) | 0.7.0 | Please use `clickhouse-client` (see https://clickhouse.com/docs/en/interfaces/cli#clickhouse-client) |
| 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 |


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

| ClickHouse Version | Client Version | Comment |
|--------------------|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
| Server >= 23.0 | 0.6.2 | |
| Server >= 23.0 | 0.6.2+ | |


### Features
Expand Down
13 changes: 1 addition & 12 deletions examples/client-v2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@
<tag>HEAD</tag>
</scm>

<issueManagement>
<system>Github</system>
<url>https://github.com/ClickHouse/clickhouse-java/issues</url>
</issueManagement>

<ciManagement>
<system>Github</system>
<url>https://github.com/ClickHouse/clickhouse-java/actions</url>
</ciManagement>

<repositories>
<repository>
<id>central</id>
Expand All @@ -64,8 +54,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<clickhouse-java.version>0.7.1-patch1-SNAPSHOT</clickhouse-java.version>
<apache-httpclient.version>5.3.1</apache-httpclient.version>
<clickhouse-java.version>0.7.2-SNAPSHOT</clickhouse-java.version>

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

Expand Down
30 changes: 2 additions & 28 deletions examples/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,6 @@
</license>
</licenses>

<developers>
<developer>
<id>zhicwu</id>
<name>Zhichun Wu</name>
<email>[email protected]</email>
<timezone>+8</timezone>
</developer>
</developers>

<scm>
<url>https://github.com/ClickHouse/clickhouse-java</url>
<connection>scm:[email protected]:ClickHouse/clickhouse-java.git</connection>
<developerConnection>scm:[email protected]:ClickHouse/clickhouse-java.git</developerConnection>
<tag>HEAD</tag>
</scm>

<issueManagement>
<system>Github</system>
<url>https://github.com/ClickHouse/clickhouse-java/issues</url>
</issueManagement>

<ciManagement>
<system>Github</system>
<url>https://github.com/ClickHouse/clickhouse-java/actions</url>
</ciManagement>

<repositories>
<repository>
<id>ossrh</id>
Expand All @@ -66,9 +40,9 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<clickhouse-java.version>0.7.1-patch1-SNAPSHOT</clickhouse-java.version>
<clickhouse-java.version>0.7.2-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.1</clickhouse-java.version>-->
<!-- <clickhouse-java.version>0.7.2</clickhouse-java.version>-->

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

Expand Down
6 changes: 4 additions & 2 deletions examples/demo-kotlin-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ repositories {
mavenCentral()
}

val ch_java_client_version: String by extra

dependencies {
// application dependencies
implementation("io.ktor:ktor-server-core-jvm")
Expand All @@ -33,8 +35,8 @@ dependencies {
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")

// https://mvnrepository.com/artifact/com.clickhouse/client-v2
implementation("com.clickhouse:client-v2:0.7.1-patch1-SNAPSHOT:all")
// implementation("com.clickhouse:client-v2:0.7.1-patch1:all") // release version
implementation("com.clickhouse:client-v2:${ch_java_client_version}-SNAPSHOT:all")
// implementation("com.clickhouse:client-v2:${ch_java_client_version}:all") // release version

testImplementation("io.ktor:ktor-server-test-host-jvm")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
Expand Down
2 changes: 2 additions & 0 deletions examples/demo-kotlin-service/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ kotlin.code.style=official
ktor_version=2.3.12
kotlin_version=2.0.20
logback_version=1.4.14

ch_java_client_version=0.7.2
9 changes: 4 additions & 5 deletions examples/demo-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ repositories {
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") // for nightly builds
}

val ch_java_client_version: String by extra

dependencies {

// -- clickhouse dependencies
// Main dependency
implementation("com.clickhouse:client-v2:0.7.1-patch1-SNAPSHOT:all") // local or nightly build
// implementation("com.clickhouse:client-v2:0.7.1-patch1:all") // release version

// -- clickhouse-http-client dependencies if old implementation is needed
// implementation("com.clickhouse:clickhouse-http-client:0.7.1-SNAPSHOT")
implementation("com.clickhouse:client-v2:${ch_java_client_version}-SNAPSHOT:all") // local or nightly build
// implementation("com.clickhouse:client-v2:${ch_java_client_version}:all") // release version

// -- application dependencies
implementation("org.springframework.boot:spring-boot-starter-actuator")
Expand Down
2 changes: 2 additions & 0 deletions examples/demo-service/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

ch_java_client_version=0.7.2
12 changes: 1 addition & 11 deletions examples/jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@
<tag>HEAD</tag>
</scm>

<issueManagement>
<system>Github</system>
<url>https://github.com/ClickHouse/clickhouse-java/issues</url>
</issueManagement>

<ciManagement>
<system>Github</system>
<url>https://github.com/ClickHouse/clickhouse-java/actions</url>
</ciManagement>

<repositories>
<repository>
<id>ossrh</id>
Expand All @@ -57,7 +47,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

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

Expand Down
18 changes: 9 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
</license>
</licenses>

<developers>
<developer>
<id>zhicwu</id>
<name>Zhichun Wu</name>
<email>[email protected]</email>
<timezone>+8</timezone>
</developer>
</developers>
<!-- <developers>-->
<!-- <developer>-->
<!-- <id></id>-->
<!-- <name></name>-->
<!-- <email></email>-->
<!-- <timezone></timezone>-->
<!-- </developer>-->
<!-- </developers>-->

<modules>
<!-- shared -->
Expand Down Expand Up @@ -81,7 +81,7 @@
</distributionManagement>

<properties>
<revision>0.7.1-patch1-SNAPSHOT</revision>
<revision>0.7.2-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
Loading