Zhan Zhang created HIVE-7743: -------------------------------- Summary: appendReadColumns should have sanity check Key: HIVE-7743 URL: https://issues.apache.org/jira/browse/HIVE-7743 Project: Hive Issue Type: Bug Components: HiveServer2 Affects Versions: 0.13.1 Reporter: Zhan Zhang
With appendReadColumnNames become private, user has to use appendReadColumns( Configuration conf, List<Integer> ids, List<String> names). If the ids is empty or with length 0, there will be exception thrown. There should be sanity check with this case. public static void appendReadColumns( Configuration conf, List<Integer> ids, List<String> names) { if (ids != null && ids.size() > 0) appendReadColumns(conf, ids); appendReadColumnNames(conf, names); } -- This message was sent by Atlassian JIRA (v6.2#6252)