Github user chenliang613 commented on a diff in the pull request: https://github.com/apache/carbondata/pull/1142#discussion_r126273765 --- Diff: integration/hive/src/main/java/org/apache/carbondata/hive/CarbonHiveRecordReader.java --- @@ -111,58 +108,46 @@ private void initialize(InputSplit inputSplit, Configuration conf) throws IOExce } else { columnTypes = TypeInfoUtils.getTypeInfosFromTypeString(columnTypeProperty); } + + if (valueObj == null) { + valueObj = new ArrayWritable(Writable.class, new Writable[columnTypes.size()]); + } --- End diff -- columnTypes.size() and queryModel.getProjectionColumns().length is different, why need to do this change ?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---