Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 250D7200D0C for ; Wed, 6 Sep 2017 03:04:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 238D91609D1; Wed, 6 Sep 2017 01:04:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6A91D1609C5 for ; Wed, 6 Sep 2017 03:04:36 +0200 (CEST) Received: (qmail 94359 invoked by uid 500); 6 Sep 2017 01:04:35 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 94348 invoked by uid 99); 6 Sep 2017 01:04:35 -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, 06 Sep 2017 01:04:35 +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 E1D161A63FD for ; Wed, 6 Sep 2017 01:04:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] 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 xKJonyDCF2or for ; Wed, 6 Sep 2017 01:04:34 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E9C7E5FC99 for ; Wed, 6 Sep 2017 01:04:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v8614XXX006240; Wed, 6 Sep 2017 01:04:33 GMT Date: Wed, 6 Sep 2017 01:04:33 +0000 From: "Bikramjeet Vig (Code Review)" To: Marcel Kornacker , impala-cr@cloudera.com, reviews@impala.incubator.apache.org Message-ID: Reply-To: bikramjeet.vig@cloudera.com X-Gerrit-MessageType: newchange Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5812=3A_NPE_when_x_joining_on_const_select_having_an_empty_result=0A?= X-Gerrit-Change-Id: I6e425dbcb442aeeac687e103774823d3f50e6436 X-Gerrit-ChangeURL: X-Gerrit-Commit: ed0e362aded20a7a876171f1a97a137ad0201ba2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.7 archived-at: Wed, 06 Sep 2017 01:04:37 -0000 Bikramjeet Vig has uploaded a new change for review. http://gerrit.cloudera.org:8080/7971 Change subject: IMPALA-5812: NPE when x joining on const select having an empty result ...................................................................... IMPALA-5812: NPE when x joining on const select having an empty result A NPE is thrown during the creation of the single node plan of a query consisting of a cross join with a constant select that returns an empty result set. This happens because when an empty-set plan node is created, its tupleIds_ and tblRefIds_ are initialized with the tuple ID of a newly create tuple that does not map to any existing tableRefs. This causes a null pre-check to fail during the creation of the join node when it tries to fetch the tableRef from that new tuple Id in the empty-set node but doesn't find one. Testing: Added a planner test. Change-Id: I6e425dbcb442aeeac687e103774823d3f50e6436 --- M fe/src/main/java/org/apache/impala/planner/SingleNodePlanner.java M testdata/workloads/functional-planner/queries/PlannerTest/joins.test 2 files changed, 19 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/71/7971/1 -- To view, visit http://gerrit.cloudera.org:8080/7971 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6e425dbcb442aeeac687e103774823d3f50e6436 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Bikramjeet Vig