This is an automated email from the ASF dual-hosted git repository.

francischuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite-avatica.git


The following commit(s) were added to refs/heads/master by this push:
     new abe2d1e  Update website for Avatica 1.18.0 release
abe2d1e is described below

commit abe2d1edc0a645e65cf05b5eb09362234028875f
Author: Francis Chuang <[email protected]>
AuthorDate: Tue May 18 22:01:12 2021 +1000

    Update website for Avatica 1.18.0 release
---
 site/_docs/history.md                    |  2 +-
 site/_posts/2021-05-18-release-1.18.0.md | 40 ++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletion(-)

diff --git a/site/_docs/history.md b/site/_docs/history.md
index 23f9ae6..ae640b4 100644
--- a/site/_docs/history.md
+++ b/site/_docs/history.md
@@ -28,7 +28,7 @@ For a full list of releases, see
 Downloads are available on the
 [downloads page]({{ site.baseurl }}/downloads/avatica.html).
 
-## <a 
href="https://github.com/apache/calcite-avatica/releases/tag/rel/avatica-1.18.0";>1.18.0</a>
 / 2021-05-XX
+## <a 
href="https://github.com/apache/calcite-avatica/releases/tag/rel/avatica-1.18.0";>1.18.0</a>
 / 2021-05-18
 {: #v1-18-0}
 
 Apache Calcite Avatica 1.18.0 includes a few dependency upgrades, minor fixes 
and a breaking change.
diff --git a/site/_posts/2021-05-18-release-1.18.0.md 
b/site/_posts/2021-05-18-release-1.18.0.md
new file mode 100644
index 0000000..1a5db22
--- /dev/null
+++ b/site/_posts/2021-05-18-release-1.18.0.md
@@ -0,0 +1,40 @@
+---
+layout: news_item
+date: "2021-05-18 08:30:00 +0000"
+author: francischuang
+version: 1.18.0
+categories: [release]
+tag: v1-18-0
+sha: a7cfca4
+component: avatica
+---
+<!--
+{% comment %}
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+{% endcomment %}
+-->
+
+Apache Calcite Avatica 1.18.0 includes a few dependency updates, bug fixes and
+a breaking change. In addition, the Gradle wrapper has been removed from the 
source
+distribution in order to comply with ASF policy. See the list of [bug fixes 
and new features]({{ site.baseurl }}/docs/history.html#v1-18-0)
+for more information.
+
+**Breaking change (<a 
href="https://issues.apache.org/jira/browse/CALCITE-4503";>CALCITE-4503</a>)**: 
Order of fields in records should follow that of the SQL types
+
+`Meta#deduce(List<ColumnMetaData> 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.
+
+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`.

Reply via email to