You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Zhan Zhang (JIRA)" <ji...@apache.org> on 2014/08/16 00:39:19 UTC
[jira] [Created] (HIVE-7743) appendReadColumns should have sanity
check
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)