Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 71768 invoked from network); 15 Sep 2009 02:22:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Sep 2009 02:22:47 -0000 Received: (qmail 42918 invoked by uid 500); 15 Sep 2009 02:22:47 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 42845 invoked by uid 500); 15 Sep 2009 02:22:46 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 42835 invoked by uid 99); 15 Sep 2009 02:22:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 02:22:46 +0000 X-ASF-Spam-Status: No, hits=-1999.6 required=10.0 tests=ALL_TRUSTED,SUBJECT_FUZZY_TION X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2009 02:22:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 84B3F234C052 for ; Mon, 14 Sep 2009 19:21:57 -0700 (PDT) Message-ID: <1980610274.1252981317530.JavaMail.jira@brutus> Date: Mon, 14 Sep 2009 19:21:57 -0700 (PDT) From: "Adam Kramer (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Created: (HIVE-832) Disallow OUTER JOIN with partition in WHERE clause in strict mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Disallow OUTER JOIN with partition in WHERE clause in strict mode ----------------------------------------------------------------- Key: HIVE-832 URL: https://issues.apache.org/jira/browse/HIVE-832 Project: Hadoop Hive Issue Type: Wish Reporter: Adam Kramer There is a wide-range poorly-understood issue in how WHERE and ON clauses work in the case of outer joins. The WHERE filter is applied after the join. After an outer join, the INNER table (the left table in a RIGHT OUTER, or the left table in the LEFT OUTER) has all columns set to NULL for all rows. As a result, if ANY of them are cited in the WHERE clause, they will equal NULL. This almost always causes the join to effectively be an INNER join, even though the user typed the word O-U-T-E-R, probably for good reason. In strict mode, we should not allow ANY COLUMNS from the inner table to appear in the WHERE clause. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.