diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 2c047b50e..f49ef4287 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -12,7 +12,7 @@ on: env: CHC_BRANCH: "main" - CHC_VERSION: "0.7.0" + CHC_VERSION: "0.7.1" jobs: nightly: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dcf1f632c..0f8b7c901 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: version: description: "Release version" required: true - default: "0.7.0-SNAPSHOT" + default: "0.7.1-SNAPSHOT" jobs: release: diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d84bb5f8..269b04fe1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,40 @@ -## Latest +## 0.7.1 + +### New Features +- [client-v2] Implemented more friendly number conversion. Now it is possible to convert smaller type to bigger one. +It is also possible to convert bigger into smaller if value fits into the range. (https://github.com/ClickHouse/clickhouse-java/issues/1852) +- [client-v2] Ported a feature that allows to remember DB roles for a client instance. See `com.clickhouse.client.api.Client#setDBRoles` +for details. (https://github.com/ClickHouse/clickhouse-java/issues/1832) +- [client-v2] Ported a feature that allows adding comments to a query. +See `com.clickhouse.client.api.insert.InsertSettings#logComment` and `com.clickhouse.client.api.query.QuerySettings#logComment` +for details. (https://github.com/ClickHouse/clickhouse-java/issues/1836) +- [client-v2] Added support for SSL Authentication with client certificates. (https://github.com/ClickHouse/clickhouse-java/issues/1837) +- [client-v2] Implemented a way to define a custom matching between a column name and a field in a POJO in `Client#register` method. (https://github.com/ClickHouse/clickhouse-java/issues/1866) +- [client-v1, client-v2] Implemented HTTP Basic authentication and made it a default auth method for HTTP interface. It +was done to address problem with passwords contianing special and UTF8 characters. New configuration option +`com.clickhouse.client.http.config.ClickHouseHttpOption.USE_BASIC_AUTHENTICATION` for client v1 is added. For client v2 +use `com.clickhouse.client.api.Client.Builder#useHTTPBasicAuth` method. (https://github.com/ClickHouse/clickhouse-java/issues/1305) + + +### Dependency Updates +- [client] Bumped org.apache.avro:avro version to 1.11.4 (https://github.com/ClickHouse/clickhouse-java/pull/1855) + +### Documentation +- [client] Added links to javadoc for all classes in the README.md (https://github.com/ClickHouse/clickhouse-java/pull/1878) + +### Bug Fixes +- [client-v2] Fixed deserializing nullable columns of `Nested` type (https://github.com/ClickHouse/clickhouse-java/issues/1858) +- [client-v2] Fixed dependencies needed for compression to work out of the box (https://github.com/ClickHouse/clickhouse-java/issues/1805) +- [client-v2] Fixed dependency on SNAPSHOT component (https://github.com/ClickHouse/clickhouse-java/issues/1853) +- [client-v2] Fixed using `scale` from a column definition when deserializing DateTime64 values (https://github.com/ClickHouse/clickhouse-java/issues/1851) +- [client-v2] Fixed applying database from insert settings (https://github.com/ClickHouse/clickhouse-java/issues/1868) +- [client-v2] Fixed error handling from server (https://github.com/ClickHouse/clickhouse-java/issues/1874) +- [client-v2] Fixed SerDe for SimpleAggregateFunction columns (https://github.com/ClickHouse/clickhouse-java/pull/1876) +- [client] Fixed handling error from server in response with `200 OK` status. Happens when +`send_progress_in_http_headers` is requested and query runs for a long time. (https://github.com/ClickHouse/clickhouse-java/issues/1821) +- [jdbc] Fixed incorrect error logging (https://github.com/ClickHouse/clickhouse-java/issues/1827) +- [client-v2] Fixed handling tuples in arrays (https://github.com/ClickHouse/clickhouse-java/issues/1882) +- [client-v2] Fixed passing `insert_duplication_token` through `InsertSettings`. (https://github.com/ClickHouse/clickhouse-java/issues/1877) ## 0.7.0 diff --git a/examples/client-v2/pom.xml b/examples/client-v2/pom.xml index f300154ae..24c47ce41 100644 --- a/examples/client-v2/pom.xml +++ b/examples/client-v2/pom.xml @@ -64,7 +64,7 @@ UTF-8 UTF-8 - 0.7.0-SNAPSHOT + 0.7.1-SNAPSHOT 5.3.1 3.8.1 diff --git a/examples/client/pom.xml b/examples/client/pom.xml index a91b9aea0..38f4703cf 100644 --- a/examples/client/pom.xml +++ b/examples/client/pom.xml @@ -66,9 +66,9 @@ UTF-8 UTF-8 - 0.7.0-SNAPSHOT + 0.7.1-SNAPSHOT - + 5.2.1 diff --git a/examples/demo-kotlin-service/build.gradle.kts b/examples/demo-kotlin-service/build.gradle.kts index d9734c56e..192c1e01f 100644 --- a/examples/demo-kotlin-service/build.gradle.kts +++ b/examples/demo-kotlin-service/build.gradle.kts @@ -33,7 +33,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.0-SNAPSHOT") + implementation("com.clickhouse:client-v2:0.7.1-SNAPSHOT") +// implementation("com.clickhouse:client-v2:0.7.1") // release version testImplementation("io.ktor:ktor-server-test-host-jvm") testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version") diff --git a/examples/demo-service/build.gradle.kts b/examples/demo-service/build.gradle.kts index a141885de..27a6bda11 100644 --- a/examples/demo-service/build.gradle.kts +++ b/examples/demo-service/build.gradle.kts @@ -29,11 +29,11 @@ dependencies { // -- clickhouse dependencies // Main dependency - implementation("com.clickhouse:client-v2:0.7.0-SNAPSHOT") // nightly build -// implementation("com.clickhouse:client-v2:0.7.0") // stable version + implementation("com.clickhouse:client-v2:0.7.1-SNAPSHOT") // local or nightly build +// implementation("com.clickhouse:client-v2:0.7.1") // release version // -- clickhouse-http-client dependencies if old implementation is needed -// implementation("com.clickhouse:clickhouse-http-client:0.7.0-SNAPSHOT") +// implementation("com.clickhouse:clickhouse-http-client:0.7.1-SNAPSHOT") // -- application dependencies implementation("org.springframework.boot:spring-boot-starter-actuator") diff --git a/examples/jdbc/pom.xml b/examples/jdbc/pom.xml index a8fbcd19e..50e61e28d 100644 --- a/examples/jdbc/pom.xml +++ b/examples/jdbc/pom.xml @@ -66,7 +66,7 @@ UTF-8 UTF-8 - 0.7.0-SNAPSHOT + 0.7.1-SNAPSHOT 4.0.3 5.2.1 diff --git a/examples/r2dbc/clickhouse-r2dbc-spring-webflux-sample/pom.xml b/examples/r2dbc/clickhouse-r2dbc-spring-webflux-sample/pom.xml index 461908081..1458f78f3 100644 --- a/examples/r2dbc/clickhouse-r2dbc-spring-webflux-sample/pom.xml +++ b/examples/r2dbc/clickhouse-r2dbc-spring-webflux-sample/pom.xml @@ -14,7 +14,7 @@ 1.8 1.8 - 0.7.0-SNAPSHOT + 0.7.1-SNAPSHOT 2.7.18 diff --git a/pom.xml b/pom.xml index 2adcdc832..7ab4d4c05 100644 --- a/pom.xml +++ b/pom.xml @@ -79,7 +79,7 @@ - 0.7.0-SNAPSHOT + 0.7.1-SNAPSHOT 2024 UTF-8 UTF-8