Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 70A77114F9 for ; Thu, 1 May 2014 23:06:44 +0000 (UTC) Received: (qmail 57732 invoked by uid 500); 1 May 2014 23:06:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 57440 invoked by uid 500); 1 May 2014 23:06:29 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 57374 invoked by uid 500); 1 May 2014 23:06:28 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 57320 invoked by uid 99); 1 May 2014 23:06:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2014 23:06:27 +0000 Date: Thu, 1 May 2014 23:06:27 +0000 (UTC) From: "Xuefu Zhang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-6984) Analyzing partitioned table with NULL values for the partition column failed with NPE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-6984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13987143#comment-13987143 ] Xuefu Zhang commented on HIVE-6984: ----------------------------------- The above test failures don't seem related to the patch. They appeared in other test runs. > Analyzing partitioned table with NULL values for the partition column failed with NPE > ------------------------------------------------------------------------------------- > > Key: HIVE-6984 > URL: https://issues.apache.org/jira/browse/HIVE-6984 > Project: Hive > Issue Type: Bug > Components: Statistics > Affects Versions: 0.14.0 > Reporter: Xuefu Zhang > Assignee: Xuefu Zhang > Attachments: HIVE-6984.1.patch, HIVE-6984.2.patch, HIVE-6984.patch > > > The following describes how to produce the bug: > {code} > hive> desc test2; > name string > age int > hive> select * from test2; > 6666666666666666666 NULL > 5555555555555555555 NULL > tom 15 > john NULL > mayr 40 > 30 > NULL > hive> create table test3(name string) partitioned by (age int); > hive> from test2 insert overwrite table test3 partition(age) select test2.name, test2.age; > Loading data to table default.test3 partition (age=null) > Loading partition {age=40} > Loading partition {age=__HIVE_DEFAULT_PARTITION__} > Loading partition {age=30} > Loading partition {age=15} > Partition default.test3{age=15} stats: [numFiles=1, numRows=1, totalSize=4, rawDataSize=3] > Partition default.test3{age=30} stats: [numFiles=1, numRows=1, totalSize=1, rawDataSize=0] > Partition default.test3{age=40} stats: [numFiles=1, numRows=1, totalSize=5, rawDataSize=4] > Partition default.test3{age=__HIVE_DEFAULT_PARTITION__} stats: [numFiles=1, numRows=4, totalSize=46, rawDataSize=42] > hive> analyze table test3 partition(age) compute statistics; > ... > Task with the most failures(4): > ----- > Diagnostic Messages for this Task: > java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {"name":"6666666666666666666","age":null,"raw__data__size":19} > at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.map(ExecMapper.java:195) > at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50) > at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:417) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:332) > at org.apache.hadoop.mapred.Child$4.run(Child.java:268) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:415) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1499) > at org.apache.hadoop.mapred.Child.main(Child.java:262) > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {"name":"6666666666666666666","age":null,"raw__data__size":19} > at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:549) > at org.apache.hado > FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask > {code} > The following is the stack trace in mapper log: > {code} > 2014-04-28 15:39:25,073 FATAL org.apache.hadoop.hive.ql.exec.mr.ExecMapper: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {"name":"6666666666666666666","age":null,"raw__data__size":19} > at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:549) > at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.map(ExecMapper.java:177) > at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50) > at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:417) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:332) > at org.apache.hadoop.mapred.Child$4.run(Child.java:268) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:415) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1499) > at org.apache.hadoop.mapred.Child.main(Child.java:262) > Caused by: java.lang.NullPointerException > at org.apache.hadoop.hive.ql.exec.TableScanOperator.gatherStats(TableScanOperator.java:149) > at org.apache.hadoop.hive.ql.exec.TableScanOperator.processOp(TableScanOperator.java:90) > at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:796) > at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:539) > ... 9 more > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)