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 D9D74D2B6 for ; Thu, 23 May 2013 14:23:26 +0000 (UTC) Received: (qmail 16505 invoked by uid 500); 23 May 2013 14:23:25 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 16341 invoked by uid 500); 23 May 2013 14:23:25 -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 16000 invoked by uid 500); 23 May 2013 14:23:22 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 15967 invoked by uid 99); 23 May 2013 14:23:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 May 2013 14:23:22 +0000 Date: Thu, 23 May 2013 14:23:20 +0000 (UTC) From: "Sebastian (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4598) Incorrect results when using subquery in multi table insert 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-4598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13665218#comment-13665218 ] Sebastian commented on HIVE-4598: --------------------------------- The same problem exists when is a view. > Incorrect results when using subquery in multi table insert > ----------------------------------------------------------- > > Key: HIVE-4598 > URL: https://issues.apache.org/jira/browse/HIVE-4598 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 0.11.0 > Reporter: Sebastian > > I'm using a multi table insert like this: > FROM > INSERT INTO TABLE t PARTITION (type='x') > SELECT * WHERE type='x' > INSERT INTO TABLE t PARTITION (type='y') > SELECT * WHERE type='y'; > Now when is the name of a table, everything works as expected. > However if I use a subquery as , the query runs but it inserts all results from the subquery into each partition, as if there were no "WHERE" clauses in the selects. -- 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