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 01921200C59 for ; Mon, 17 Apr 2017 19:18:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F2AFE160BAE; Mon, 17 Apr 2017 17:18:45 +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 475C3160BAB for ; Mon, 17 Apr 2017 19:18:45 +0200 (CEST) Received: (qmail 49502 invoked by uid 500); 17 Apr 2017 17:18:44 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 49493 invoked by uid 99); 17 Apr 2017 17:18:44 -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; Mon, 17 Apr 2017 17:18:44 +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 078B9C1A46 for ; Mon, 17 Apr 2017 17:18: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-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id eCrBvZ3qKNC5 for ; Mon, 17 Apr 2017 17:18:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1E25E5FBA7 for ; Mon, 17 Apr 2017 17:18: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 7A87CE0D57 for ; Mon, 17 Apr 2017 17:18: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 AD92B21B53 for ; Mon, 17 Apr 2017 17:18:41 +0000 (UTC) Date: Mon, 17 Apr 2017 17:18:41 +0000 (UTC) From: "Yongzhi Chen (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HIVE-16427) Fix multi-insert query and write qtests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 17 Apr 2017 17:18:46 -0000 [ https://issues.apache.org/jira/browse/HIVE-16427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15971357#comment-15971357 ] Yongzhi Chen edited comment on HIVE-16427 at 4/17/17 5:18 PM: -------------------------------------------------------------- [~ashutoshc], is it true that from TS to LIM0 (or the null Filter), if there are any branch between the two operations, the need to convertMetadataOnly will be false ? For example: TS -OP1-OP2-OP3-LIM0 will need to convertMetadataOnly, But following will not: {noformat} TS-OP1-OP2-OP3-LIM0 | OP4 {noformat} was (Author: ychena): [~ashutoshc], is it true that from TS to LIM0 (or the null Filter), if there are any branch between the two operations, the need to convertMetadataOnly will be false ? For example: TS -OP1-OP2-OP3-LIM0 will need to convertMetadataOnly, But following will not: TS-OP1-OP2-OP3-LIM0 | OP4 > Fix multi-insert query and write qtests > --------------------------------------- > > Key: HIVE-16427 > URL: https://issues.apache.org/jira/browse/HIVE-16427 > Project: Hive > Issue Type: Bug > Components: Logical Optimizer > Reporter: Thomas Poepping > Assignee: Yongzhi Chen > Attachments: HIVE-16427.1.patch > > > On HIVE-16415, it was found that the bug reported to be fixed in HIVE-14519 was not actually fixed. > This task is to find the problem, fix it, and add qtests to verify no future regression. > Specifically, the following query does not produce correct answers: > {code} > From (select * from src) a > insert overwrite directory '/tmp/emp/dir1/' > select key, value > insert overwrite directory '/tmp/emp/dir2/' > select 'header' > limit 0 > insert overwrite directory '/tmp/emp/dir3/' > select key, value > where key = 100; > {code} > This gives incorrect result in master. All dirs end up with 0 rows instead of just dir2. -- This message was sent by Atlassian JIRA (v6.3.15#6346)