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 95B1917C8C for ; Mon, 6 Oct 2014 19:18:36 +0000 (UTC) Received: (qmail 96605 invoked by uid 500); 6 Oct 2014 19:18:36 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 96532 invoked by uid 500); 6 Oct 2014 19:18:36 -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 96517 invoked by uid 500); 6 Oct 2014 19:18:36 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 96514 invoked by uid 99); 6 Oct 2014 19:18:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2014 19:18:36 +0000 Date: Mon, 6 Oct 2014 19:18:36 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-8272) Query with particular decimal expression causes NPE during execution initialization 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-8272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14160762#comment-14160762 ] Ashutosh Chauhan commented on HIVE-8272: ---------------------------------------- +1 > Query with particular decimal expression causes NPE during execution initialization > ----------------------------------------------------------------------------------- > > Key: HIVE-8272 > URL: https://issues.apache.org/jira/browse/HIVE-8272 > Project: Hive > Issue Type: Bug > Components: Logical Optimizer, Physical Optimizer > Reporter: Matt McCline > Assignee: Jason Dere > Priority: Critical > Fix For: 0.14.0 > > Attachments: HIVE-8272.1.patch > > > Query: > {code} > select > cast(sum(dc)*100 as decimal(11,3)) as c1 > from somedecimaltable > order by c1 > limit 100; > {code} > Fails during execution initialization due to *null* ExprNodeDesc. > Noticed while trying to simplify a Vectorization issue and realized it was a more general issue. > {code} > Caused by: java.lang.RuntimeException: Map operator initialization failed > at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.configure(ExecMapper.java:154) > ... 22 more > Caused by: java.lang.RuntimeException: java.lang.NullPointerException > at org.apache.hadoop.hive.ql.exec.ReduceSinkOperator.initializeOp(ReduceSinkOperator.java:215) > at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:380) > at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:464) > at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:420) > at org.apache.hadoop.hive.ql.exec.GroupByOperator.initializeOp(GroupByOperator.java:427) > at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:380) > at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:464) > at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:420) > at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:65) > at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:380) > at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:464) > at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:420) > at org.apache.hadoop.hive.ql.exec.TableScanOperator.initializeOp(TableScanOperator.java:193) > at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:380) > at org.apache.hadoop.hive.ql.exec.MapOperator.initializeOp(MapOperator.java:425) > at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:380) > at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.configure(ExecMapper.java:133) > ... 22 more > Caused by: java.lang.NullPointerException > at org.apache.hadoop.hive.ql.plan.ExprNodeGenericFuncDesc.getExprString(ExprNodeGenericFuncDesc.java:154) > at org.apache.hadoop.hive.ql.plan.ExprNodeGenericFuncDesc.getExprString(ExprNodeGenericFuncDesc.java:154) > at org.apache.hadoop.hive.ql.exec.ReduceSinkOperator.initializeOp(ReduceSinkOperator.java:148) > ... 38 more > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)