diff --git a/ql/src/test/queries/clientpositive/schema_evol_undecorated.q b/ql/src/test/queries/clientpositive/schema_evol_undecorated.q index 1fe5c08d5a..6bc10a7d5e 100644 --- a/ql/src/test/queries/clientpositive/schema_evol_undecorated.q +++ b/ql/src/test/queries/clientpositive/schema_evol_undecorated.q @@ -1,5 +1,5 @@ -set hive.metastore.disallow.incompatible.col.type.changes=true; +set hive.metastore.disallow.incompatible.col.type.changes=false; create external table new_char_decimal (c1 char(20)); alter table new_char_decimal change c1 c1 decimal(31,0); diff --git a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/ColumnType.java b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/ColumnType.java index 39d2b2f96c..bcce1f1731 100644 --- a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/ColumnType.java +++ b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/ColumnType.java @@ -229,10 +229,6 @@ public static boolean areColTypesCompatible(String from, String to) { return NumericCastOrder.get(from) < NumericCastOrder.get(to); } - // Allow string to double/decimal conversion - if (StringTypes.contains(from) && - (to.equals(DOUBLE_TYPE_NAME) || to.equals(DECIMAL_TYPE_NAME))) return true; - // Void can go to anything if (from.equals(VOID_TYPE_NAME)) return true;