This is an automated email from the ASF dual-hosted git repository. gates pushed a commit to branch branch-3.1 in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/branch-3.1 by this push: new 994c006 HIVE-20057 For ALTER TABLE t SET TBLPROPERTIES ('EXTERNAL'='TRUE'); `TBL_TYPE` attribute change not reflecting for non-CAPS (Anirudh via Alan Gates) 994c006 is described below commit 994c006e5e3e9c585fa5d02e3f5272d7818a5162 Author: Alan Gates <ga...@hortonworks.com> AuthorDate: Tue Aug 13 11:32:37 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 fdadf12..6bdae6c 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 @@ -2018,12 +2018,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(); }