Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 981DE17A6B for ; Thu, 9 Apr 2015 21:57:12 +0000 (UTC) Received: (qmail 16625 invoked by uid 500); 9 Apr 2015 21:57:12 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 16603 invoked by uid 500); 9 Apr 2015 21:57:12 -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 16592 invoked by uid 99); 9 Apr 2015 21:57:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2015 21:57:12 +0000 Date: Thu, 9 Apr 2015 21:57:12 +0000 (UTC) From: "Gunther Hagleitner (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-10273) Union with partition tables which have no data fails 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-10273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14488360#comment-14488360 ] Gunther Hagleitner commented on HIVE-10273: ------------------------------------------- looks good - although i think it'd be nice if we always use the else branch in MapWork to find the operators. > Union with partition tables which have no data fails with NPE > ------------------------------------------------------------- > > Key: HIVE-10273 > URL: https://issues.apache.org/jira/browse/HIVE-10273 > Project: Hive > Issue Type: Bug > Components: Tez > Affects Versions: 1.2.0 > Reporter: Vikram Dixit K > Assignee: Vikram Dixit K > Attachments: HIVE-10273.1.patch > > > As shown in the test case in the patch below, when we have partitioned tables which have no data, we fail with an NPE with the following stack trace: > {code} > NullPointerException null > java.lang.NullPointerException > at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.walk(DefaultGraphWalker.java:128) > at org.apache.hadoop.hive.ql.lib.DefaultGraphWalker.startWalking(DefaultGraphWalker.java:109) > at org.apache.hadoop.hive.ql.optimizer.physical.Vectorizer$VectorizationDispatcher.validateMapWork(Vectorizer.java:357) > at org.apache.hadoop.hive.ql.optimizer.physical.Vectorizer$VectorizationDispatcher.convertMapWork(Vectorizer.java:321) > at org.apache.hadoop.hive.ql.optimizer.physical.Vectorizer$VectorizationDispatcher.dispatch(Vectorizer.java:307) > at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.dispatch(TaskGraphWalker.java:111) > at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.walk(TaskGraphWalker.java:194) > at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.startWalking(TaskGraphWalker.java:139) > at org.apache.hadoop.hive.ql.optimizer.physical.Vectorizer.resolve(Vectorizer.java:847) > at org.apache.hadoop.hive.ql.parse.TezCompiler.optimizeTaskPlan(TezCompiler.java:468) > at org.apache.hadoop.hive.ql.parse.TaskCompiler.compile(TaskCompiler.java:223) > at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:10170) > at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:221) > at org.apache.hadoop.hive.ql.parse.ExplainSemanticAnalyzer.analyzeInternal(ExplainSemanticAnalyzer.java:74) > at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:221) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)