From 9486557be86bcade35d814d8a81be638395f57c6 Mon Sep 17 00:00:00 2001 From: Francis Chuang Date: Thu, 8 Apr 2021 09:03:39 +1000 Subject: [PATCH] [CALCITE-4488] Prepare for Avatica 1.18.0 release --- NOTICE | 2 +- README | 2 +- gradle.properties | 2 +- site/_docs/docker_images.md | 28 ++++++++++----------- site/_docs/history.md | 49 ++++++++++++++++++++++++++++++++++++- site/_docs/howto.md | 4 +-- 6 files changed, 67 insertions(+), 20 deletions(-) diff --git a/NOTICE b/NOTICE index b6529d7c13..23bb7727b5 100644 --- a/NOTICE +++ b/NOTICE @@ -1,5 +1,5 @@ Apache Calcite -- Avatica -Copyright 2012-2020 The Apache Software Foundation +Copyright 2012-2021 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/). diff --git a/README b/README index 8e65aab38b..781e9470df 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -Apache Calcite Avatica release 1.17.0 +Apache Calcite Avatica release 1.18.0 This is a source or binary distribution of Avatica, a framework for building database drivers. Avatica is a sub-project of Apache Calcite. diff --git a/gradle.properties b/gradle.properties index e122584dc4..1e3db0530f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -23,7 +23,7 @@ kotlin.parallel.tasks.in.project=true # This is version for Calcite Avatica itself # Note: it should not include "-SNAPSHOT" as it is automatically added by build.gradle.kts # Release version can be generated by using -Prelease or -Prc= arguments -calcite.avatica.version=1.17.0 +calcite.avatica.version=1.18.0 # The options below configures the use of local clone (e.g. testing development versions) # You can pass un-comment it, or pass option -PlocalReleasePlugins, or -PlocalReleasePlugins= diff --git a/site/_docs/docker_images.md b/site/_docs/docker_images.md index f99863d695..f8b9e6349a 100644 --- a/site/_docs/docker_images.md +++ b/site/_docs/docker_images.md @@ -70,22 +70,22 @@ file will start an instance of PostgreSQL and an instance of the Avatica server, exposing an Avatica server configured against a "real" PostgreSQL database. All of the `Dockerfile` and `docker-compose.yml` files are conveniently provided in an archive for -each release. Here is the layout for release 1.17.0: +each release. Here is the layout for release 1.18.0: ``` -avatica-docker-1.17.0/ -avatica-docker-1.17.0/hypersql/ -avatica-docker-1.17.0/mysql/ -avatica-docker-1.17.0/postgresql/ -avatica-docker-1.17.0/Dockerfile -avatica-docker-1.17.0/hypersql/build.sh -avatica-docker-1.17.0/hypersql/Dockerfile -avatica-docker-1.17.0/mysql/build.sh -avatica-docker-1.17.0/mysql/docker-compose.yml -avatica-docker-1.17.0/mysql/Dockerfile -avatica-docker-1.17.0/postgresql/build.sh -avatica-docker-1.17.0/postgresql/docker-compose.yml -avatica-docker-1.17.0/postgresql/Dockerfile +avatica-docker-1.18.0/ +avatica-docker-1.18.0/hypersql/ +avatica-docker-1.18.0/mysql/ +avatica-docker-1.18.0/postgresql/ +avatica-docker-1.18.0/Dockerfile +avatica-docker-1.18.0/hypersql/build.sh +avatica-docker-1.18.0/hypersql/Dockerfile +avatica-docker-1.18.0/mysql/build.sh +avatica-docker-1.18.0/mysql/docker-compose.yml +avatica-docker-1.18.0/mysql/Dockerfile +avatica-docker-1.18.0/postgresql/build.sh +avatica-docker-1.18.0/postgresql/docker-compose.yml +avatica-docker-1.18.0/postgresql/Dockerfile ``` #### Running diff --git a/site/_docs/history.md b/site/_docs/history.md index 397315b7ec..a81e77e042 100644 --- a/site/_docs/history.md +++ b/site/_docs/history.md @@ -31,7 +31,17 @@ Downloads are available on the ## 1.18.0 / 2021-04-XX {: #v1-18-0} -### Breaking changes +Apache Calcite Avatica 1.18.0 includes a few dependency upgrades, minor fixes and a breaking change. +Please see below to determine how the breaking change will affect your project. + +Compatibility: This release is tested +on Linux, macOS, Microsoft Windows; +using Oracle JDK 8, 9, 10, 11, 12, 13, 14; +using IBM Java 8; +Guava versions 14.0 to 29.0; +other software versions as specified in `gradle.properties`. + +***Breaking changes*** * [CALCITE-4503] Order of fields in records should follow that of the SQL types `Meta#deduce(List columns, Class resultClazz)` now only derives the order of the fields from the list of provided column metadata `columns` when generating a record from the given Java class `resultClazz`, instead of relying on the field order provided by `Object#getFields()`, which is a JVM-dependent feature. @@ -39,6 +49,43 @@ Downloads are available on the Before, the field names where not checked against the field names of the provided class. Now, if `resultClazz` is not null, the provided field names are expected to match existing fields in that class. If a column metadata has name `column`, and no public field in `resultClazz` with that name exists, the following exception is thrown: `java.lang.RuntimeException: java.lang.NoSuchFieldException: C`. +Features and bug fixes +* [CALCITE-4138] + Metadata operations via Avatica turn empty string args to null (Istvan Toth) +* [CALCITE-4095] + Update Jetty to 9.4.31.v20200723 and use `SslContextFactory.Server` instead of `SslContextFactory` (Peter Somogyi) +* [CALCITE-4196] + Consume all data from client before replying with HTTP/401 +* Upgrade gradle from 6.3 to 6.7 +* [CALCITE-4379] + Meta.Frame created with java float values in rows hits a ClassCastException in toProto() (Dmitri Bourlatchkov) +* [CALCITE-4181] + Avatica throws exception when select field is a List (Kent Nguyen) +* Upgrade Gradle from 6.7 to 6.8.1 +* [CALCITE-4476] + DateTimeUtils.timeStringToUnixDate may produce wrong time (Vladimir Ozerov) +* [CALCITE-3401] + Assume empty keystore passwords by default (Istvan Toth, Alessandro Solimando) +* [CALCITE-3881] + DateTimeUtils.addMonths yields incorrect results (Zhenghua Gao) +* [CALCITE-3163] + Incorrect mapping of JDBC float/real array types to Java types (Ralph Gasser) +* [CALCITE-4503] + Order of fields in records should follow that of the SQL types (Alessandro Solimando) +* Upgrade Gradle docker containers to 6.8 + +Tests +* Remove files that change often from Travis cache and remove broken files automatically +* [CALCITE-3163] + Improve test coverage for float/real/double array types (Alessandro Solimando) +* Replace AssertTestUtils with custom Hamcrest matcher for accessors content + +Website and Documentation +* [CALCITE-3841] + Change downloads page to use downloads.apache.org +* [CALCITE-4367] + Correct Avatica protocol docs + ## 1.17.0 / 2020-06-22 {: #v1-17-0} diff --git a/site/_docs/howto.md b/site/_docs/howto.md index 84ac1c0409..0f4941caba 100644 --- a/site/_docs/howto.md +++ b/site/_docs/howto.md @@ -37,8 +37,8 @@ Unpack the source distribution `.tar.gz` file, then build using maven: {% highlight bash %} -$ tar xvfz apache-calcite-avatica-1.17.0-src.tar.gz -$ cd apache-calcite-avatica-1.17.0-src +$ tar xvfz apache-calcite-avatica-1.18.0-src.tar.gz +$ cd apache-calcite-avatica-1.18.0-src $ ./gradlew build {% endhighlight %}