This is an automated email from the ASF dual-hosted git repository. gates pushed a commit to branch branch-3 in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/branch-3 by this push: new aa9d880 HIVE-20057 For ALTER TABLE t SET TBLPROPERTIES ('EXTERNAL'='TRUE'); `TBL_TYPE` attribute change not reflecting for non-CAPS (Anirudh via Alan Gates) aa9d880 is described below commit aa9d8809ea8ebedc297e4fe8ef1b157bb011aff6 Author: Alan Gates <ga...@hortonworks.com> AuthorDate: Wed Aug 14 15:40:09 2019 -0700 HIVE-20057 For ALTER TABLE t SET TBLPROPERTIES ('EXTERNAL'='TRUE'); `TBL_TYPE` attribute change not reflecting for non-CAPS (Anirudh via Alan Gates) --- .../src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java index 1a4f98b..8f1d3e0 100644 --- a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -1793,12 +1793,12 @@ public class ObjectStore implements RawStore, Configurable { // accordingly String tableType = tbl.getTableType(); boolean isExternal = Boolean.parseBoolean(tbl.getParameters().get("EXTERNAL")); - if (TableType.MANAGED_TABLE.toString().equals(tableType)) { + if (TableType.MANAGED_TABLE.toString().equalsIgnoreCase(tableType)) { if (isExternal) { tableType = TableType.EXTERNAL_TABLE.toString(); } } - if (TableType.EXTERNAL_TABLE.toString().equals(tableType)) { + if (TableType.EXTERNAL_TABLE.toString().equalsIgnoreCase(tableType)) { if (!isExternal) { tableType = TableType.MANAGED_TABLE.toString(); }