commit bb1c99e0d53770520553c5de00d31aad53a0d9b8 Author: Daniel Dai Date: Sat Aug 6 01:00:51 2016 -0700 HIVE-14436: Hive 1.2.1/Hitting ql.Driver: FAILED: IllegalArgumentException Error: , expected at the end of 'decimal(9' after enabling hive.optimize.skewjoin and with MR engine diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java index fd25978..68702aa 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java @@ -1877,15 +1877,26 @@ public static String formatBinaryString(byte[] array, int start, int length) { public static List getColumnTypes(Properties props) { List names = new ArrayList(); - String colNames = props.getProperty(serdeConstants.LIST_COLUMN_TYPES); - String[] cols = colNames.trim().split(","); - if (cols != null) { - for (String col : cols) { + String colNames = props.getProperty(serdeConstants.LIST_COLUMN_TYPES).trim(); + int level = 0; + int begin = 0; + for (int i=0;i