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 D486FDE6A for ; Thu, 13 Dec 2012 17:36:16 +0000 (UTC) Received: (qmail 16778 invoked by uid 500); 13 Dec 2012 17:36:15 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 15632 invoked by uid 500); 13 Dec 2012 17:36:14 -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 14253 invoked by uid 500); 13 Dec 2012 17:36:12 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 14214 invoked by uid 99); 13 Dec 2012 17:36:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 17:36:12 +0000 Date: Thu, 13 Dec 2012 17:36:12 +0000 (UTC) From: "Xiao Jiang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-3795) NPE in SELECT when WHERE-clause is an and/or/not operation involving null 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-3795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiao Jiang updated HIVE-3795: ----------------------------- Attachment: HIVE-3795.1.patch.txt > NPE in SELECT when WHERE-clause is an and/or/not operation involving null > ------------------------------------------------------------------------- > > Key: HIVE-3795 > URL: https://issues.apache.org/jira/browse/HIVE-3795 > Project: Hive > Issue Type: Bug > Components: Query Processor > Reporter: Xiao Jiang > Assignee: Xiao Jiang > Priority: Trivial > Attachments: HIVE-3795.1.patch.txt > > > Sometimes users forget to quote date constants in queries. For example, SELECT * FROM some_table WHERE ds >= 2012-12-10 and ds <= 2012-12-12; . In such cases, if the WHERE-clause contains and/or/not operation, it would throw NPE exception. That's because PcrExprProcFactory in ql/optimizer forgot to check null. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira