[ https://issues.apache.org/jira/browse/HIVE-6922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13974812#comment-13974812 ]
Hive QA commented on HIVE-6922: ------------------------------- {color:red}Overall{color}: -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12640588/HIVE-6922.patch {color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 5406 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_auto_sortmerge_join_16 {noformat} Test results: http://bigtop01.cloudera.org:8080/job/precommit-hive/7/testReport Console output: http://bigtop01.cloudera.org:8080/job/precommit-hive/7/console Messages: {noformat} Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 1 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12640588 > NullPointerException in collect_set() UDAF > ------------------------------------------ > > Key: HIVE-6922 > URL: https://issues.apache.org/jira/browse/HIVE-6922 > Project: Hive > Issue Type: Bug > Components: UDF > Reporter: Sun Rui > Assignee: Sun Rui > Attachments: HIVE-6922.patch > > > Steps to reproduce the bug: > {noformat} > create table temp(key int, value string); > -- leave the table empty > select collect_set(key) from temp where key=0; > Error: java.lang.RuntimeException: Hive Runtime Error while closing > operators: java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.exec.mr.ExecReducer.close(ExecReducer.java:326) > at > org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:471) > at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:408) > at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:162) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:396) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1477) > at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:157) > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: > java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.exec.GroupByOperator.closeOp(GroupByOperator.java:1141) > at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:577) > at > org.apache.hadoop.hive.ql.exec.mr.ExecReducer.close(ExecReducer.java:318) > ... 7 more > Caused by: java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.udf.generic.GenericUDAFMkCollectionEvaluator.merge(GenericUDAFMkCollectionEvaluator.java:140) > at > org.apache.hadoop.hive.ql.udf.generic.GenericUDAFEvaluator.aggregate(GenericUDAFEvaluator.java:186) > at > org.apache.hadoop.hive.ql.exec.GroupByOperator.closeOp(GroupByOperator.java:1132) > ... 9 more > {noformat} > The root cause is that in GenericUDAFMkCollectionEvaluator.merge() > partialResult could be null but is not validated before it is used. > {code} > List<Object> partialResult = (ArrayList<Object>) > internalMergeOI.getList(partial); > for(Object i : partialResult) { > putIntoCollection(i, myagg); > } > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)