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 1959210CE3 for ; Tue, 22 Oct 2013 10:23:53 +0000 (UTC) Received: (qmail 31261 invoked by uid 500); 22 Oct 2013 10:23:52 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 31031 invoked by uid 500); 22 Oct 2013 10:23:52 -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 31019 invoked by uid 500); 22 Oct 2013 10:23:51 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 31016 invoked by uid 99); 22 Oct 2013 10:23:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Oct 2013 10:23:51 +0000 Date: Tue, 22 Oct 2013 10:23:46 +0000 (UTC) From: "Prasanth J (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-5601) NPE in ORC's PPD when using select * from table with where predicate 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-5601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Prasanth J updated HIVE-5601: ----------------------------- Attachment: HIVE-5601.branch-0.12.3.patch.txt > NPE in ORC's PPD when using select * from table with where predicate > --------------------------------------------------------------------- > > Key: HIVE-5601 > URL: https://issues.apache.org/jira/browse/HIVE-5601 > Project: Hive > Issue Type: Bug > Affects Versions: 0.12.0 > Reporter: Prasanth J > Assignee: Prasanth J > Priority: Critical > Labels: ORC > Attachments: HIVE-5601.branch-0.12.2.patch.txt, HIVE-5601.branch-0.12.3.patch.txt, HIVE-5601.branch-12.1.patch.txt, HIVE-5601.trunk.1.patch.txt, HIVE-5601.trunk.2.patch.txt, HIVE-5601.trunk.3.patch.txt > > > ORCInputFormat has a method findIncludedColumns() which returns boolean array of included columns. In case of the following query > {code}select * from qlog_orc where id<1000 limit 10;{code} > where all columns are selected the findIncludedColumns() returns null. This will result in a NPE when PPD is enabled. Following is the stack trace > {code}Caused by: java.lang.NullPointerException > at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.planReadPartialDataStreams(RecordReaderImpl.java:2387) > at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.readPartialDataStreams(RecordReaderImpl.java:2543) > at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.readStripe(RecordReaderImpl.java:2200) > at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.advanceStripe(RecordReaderImpl.java:2573) > at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.advanceToNextRow(RecordReaderImpl.java:2615) > at org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.(RecordReaderImpl.java:132) > at org.apache.hadoop.hive.ql.io.orc.ReaderImpl.rows(ReaderImpl.java:348) > at org.apache.hadoop.hive.ql.io.orc.OrcInputFormat$OrcRecordReader.(OrcInputFormat.java:99) > at org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.getRecordReader(OrcInputFormat.java:241) > at org.apache.hadoop.hive.ql.io.HiveInputFormat.getRecordReader(HiveInputFormat.java:237) > ... 8 more{code} -- This message was sent by Atlassian JIRA (v6.1#6144)