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 1E92A200C5F for ; Sun, 9 Apr 2017 02:47:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 12570160B96; Sun, 9 Apr 2017 00:47:47 +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 59054160B93 for ; Sun, 9 Apr 2017 02:47:46 +0200 (CEST) Received: (qmail 19269 invoked by uid 500); 9 Apr 2017 00:47:45 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 19257 invoked by uid 99); 9 Apr 2017 00:47:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Apr 2017 00:47:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A929AC265E for ; Sun, 9 Apr 2017 00:47:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ihr8UOBx4gb9 for ; Sun, 9 Apr 2017 00:47:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 79CE75F1E9 for ; Sun, 9 Apr 2017 00:47:43 +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 A247EE045B for ; Sun, 9 Apr 2017 00:47:42 +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 0279520D6D for ; Sun, 9 Apr 2017 00:47:41 +0000 (UTC) Date: Sun, 9 Apr 2017 00:47:41 +0000 (UTC) From: "Jerry He (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-3633) null pointer exception when subsquery for not exists returns empty result set MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 09 Apr 2017 00:47:47 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jerry He updated PHOENIX-3633: ------------------------------ Attachment: PHOENIX-3633.patch Ran into this problem. Attach a fix. > null pointer exception when subsquery for not exists returns empty result set > ----------------------------------------------------------------------------- > > Key: PHOENIX-3633 > URL: https://issues.apache.org/jira/browse/PHOENIX-3633 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.7.0 > Reporter: N Campbell > Assignee: NIDHI GAMBHIR > Attachments: PHOENIX-3633.patch > > > phoenix-4.7.0.2.5.3.0-37-client > select RNUM, C1, C2 from TJOIN2 where not exists ( select C1 from TJOIN1 where C2=500) > Error while executing SQL "select RNUM, C1, C2 from TJOIN2 where not exists ( select C1 from TJOIN1 where C2=500)": Remote driver error: NullPointerException: (null exception message) > create table if not exists TJOIN1 (RNUM integer not null primary key , C1 integer, C2 integer); > upsert into TJOIN1 (RNUM, C1, C2) values ( 0, 10, 15); > upsert into TJOIN1 (RNUM, C1, C2) values ( 1, 20, 25); > upsert into TJOIN1 (RNUM, C1, C2) values ( 2, NULL, 50); > create table if not exists TJOIN2 (RNUM integer not null primary key , C1 integer, C2 char(2)); > upsert into TJOIN2 (RNUM, C1, C2) values ( 0, 10, 'BB'); > upsert into TJOIN2 (RNUM, C1, C2) values ( 1, 15, 'DD'); > upsert into TJOIN2 (RNUM, C1, C2) values ( 2, NULL, 'EE'); > upsert into TJOIN2 (RNUM, C1, C2) values ( 3, 10, 'FF'); -- This message was sent by Atlassian JIRA (v6.3.15#6346)