From issues-return-125920-archive-asf-public=cust-asf.ponee.io@hive.apache.org Wed Jun 27 02:20:07 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id E03D1180636 for ; Wed, 27 Jun 2018 02:20:06 +0200 (CEST) Received: (qmail 3524 invoked by uid 500); 27 Jun 2018 00:20:05 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 3477 invoked by uid 99); 27 Jun 2018 00:20:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2018 00:20:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7F07D1A1BE5 for ; Wed, 27 Jun 2018 00:20:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id qVaYpactn99P for ; Wed, 27 Jun 2018 00:20:04 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DC1445FAC2 for ; Wed, 27 Jun 2018 00:20:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 694BFE09A5 for ; Wed, 27 Jun 2018 00:20:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id E5C4C23FB3 for ; Wed, 27 Jun 2018 00:20:00 +0000 (UTC) Date: Wed, 27 Jun 2018 00:20:00 +0000 (UTC) From: "Dongwook Kwon (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-18786) NPE in Hive windowing functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-18786?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Dongwook Kwon updated HIVE-18786: --------------------------------- Attachment: HIVE-18786.1.patch > NPE in Hive windowing functions > ------------------------------- > > Key: HIVE-18786 > URL: https://issues.apache.org/jira/browse/HIVE-18786 > Project: Hive > Issue Type: Bug > Affects Versions: 2.3.2, 2.3.3 > Reporter: Michael Bieniosek > Assignee: Dongwook Kwon > Priority: Critical > Attachments: HIVE-18786.1.patch > > > When I run a Hive query with windowing functions, if there's enough data = I get an NPE. > For example something like this query might break: > select id, created_date, max(created_date) over (partition by id) latest_= created_any from ... > The only workaround I've found is to remove the windowing functions entir= ely. > The stacktrace looks suspiciously similar to +HIVE-15278+, but I'm in hiv= e-2.3.2 which appears to have the bugfix applied. > =C2=A0 > =C2=A0Caused by: java.lang.RuntimeException: org.apache.hadoop.hive.ql.me= tadata.HiveException: Hive Runtime Error while processing row (tag=3D0)=C2= =A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.hadoop.hive.ql.exec.tez.ReduceRe= cordSource.pushRecord(ReduceRecordSource.java:297) > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0at org.apache.hadoop.hive.ql.exec.tez.Re= duceRecordProcessor.run(ReduceRecordProcessor.java:317) > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0at org.apache.hadoop.hive.ql.exec.tez.Te= zProcessor.initializeAndRunProcessor(TezProcessor.java:185) > =C2=A0 =C2=A0 =C2=A0 =C2=A0... 14 more > =C2=A0Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive R= untime Error while processing row (tag=3D0) > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0at org.apache.hadoop.hive.ql.exec.tez.Re= duceRecordSource$GroupIterator.next(ReduceRecordSource.java:365) > =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.hadoop.hive.ql.exec.tez.ReduceRe= cordSource.pushRecord(ReduceRecordSource.java:287) > =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0... 16 more > Caused by: java.lang.NullPointerException > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hive.ql.exec.persi= stence.PTFRowContainer.first(PTFRowContainer.java:115) > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hive.ql.exec.PTFPa= rtition.iterator(PTFPartition.java:114) > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hive.ql.udf.ptf.Ba= sePartitionEvaluator.getPartitionAgg(BasePartitionEvaluator.java:200) > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hive.ql.udf.ptf.Wi= ndowingTableFunction.evaluateFunctionOnPartition(WindowingTableFunction.jav= a:155) > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hive.ql.udf.ptf.Wi= ndowingTableFunction.iterator(WindowingTableFunction.java:538) > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hive.ql.exec.PTFOp= erator$PTFInvocation.finishPartition(PTFOperator.java:349) > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hive.ql.exec.PTFOp= erator.process(PTFOperator.java:123) > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hive.ql.exec.Opera= tor.forward(Operator.java:897) > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hive.ql.exec.Selec= tOperator.process(SelectOperator.java:95) > =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.hive.ql.exec.tez.R= educeRecordSource$GroupIterator.next(ReduceRecordSource.java:356) -- This message was sent by Atlassian JIRA (v7.6.3#76005)