Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A6D31869F for ; Mon, 19 Oct 2015 19:37:08 +0000 (UTC) Received: (qmail 54002 invoked by uid 500); 19 Oct 2015 19:30:28 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 53970 invoked by uid 500); 19 Oct 2015 19:30:28 -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 53949 invoked by uid 99); 19 Oct 2015 19:30:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2015 19:30:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B3B112C033A for ; Mon, 19 Oct 2015 19:30:27 +0000 (UTC) Date: Mon, 19 Oct 2015 19:30:27 +0000 (UTC) From: "Aihua Xu (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-12215) Exchange partition does not show outputs field for post/pre execute hooks 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-12215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aihua Xu updated HIVE-12215: ---------------------------- Description: The pre/post execute hook interface has fields that indicate which Hive objects were read / written to as a result of running the query. For the exchange partition operation, these fields (ReadEntity and WriteEntity) are empty. This is an important issue as the hook interface may be configured to perform critical warehouse operations. See {noformat} ql/src/test/results/clientpositive/exchange_partition3.q.out {noformat} {noformat} PREHOOK: query: -- This will exchange both partitions hr=1 and hr=2 ALTER TABLE exchange_part_test1 EXCHANGE PARTITION (ds='2013-04-05') WITH TABLE exchange_part_test2 PREHOOK: type: ALTERTABLE_EXCHANGEPARTITION POSTHOOK: query: -- This will exchange both partitions hr=1 and hr=2 ALTER TABLE exchange_part_test1 EXCHANGE PARTITION (ds='2013-04-05') WITH TABLE exchange_part_test2 POSTHOOK: type: ALTERTABLE_EXCHANGEPARTITION {noformat} Seems it should also print output fields. was: The pre/post execute hook interface has fields that indicate which Hive objects were read / written to as a result of running the query. For the exchange partition operation, these fields (ReadEntity and WriteEntity) are empty. This is an important issue as the hook interface may be configured to perform critical warehouse operations. See {noformat} ql/src/test/results/clientpositive/exchange_partition3.q.out {noformat} PREHOOK: query: -- This will exchange both partitions hr=1 and hr=2 ALTER TABLE exchange_part_test1 EXCHANGE PARTITION (ds='2013-04-05') WITH TABLE exchange_part_test2 PREHOOK: type: ALTERTABLE_EXCHANGEPARTITION POSTHOOK: query: -- This will exchange both partitions hr=1 and hr=2 ALTER TABLE exchange_part_test1 EXCHANGE PARTITION (ds='2013-04-05') WITH TABLE exchange_part_test2 POSTHOOK: type: ALTERTABLE_EXCHANGEPARTITION Seems it should also print output fields. > Exchange partition does not show outputs field for post/pre execute hooks > ------------------------------------------------------------------------- > > Key: HIVE-12215 > URL: https://issues.apache.org/jira/browse/HIVE-12215 > Project: Hive > Issue Type: Bug > Components: Query Processor > Affects Versions: 2.0.0 > Reporter: Aihua Xu > > The pre/post execute hook interface has fields that indicate which Hive objects were read / written to as a result of running the query. For the exchange partition operation, these fields (ReadEntity and WriteEntity) are empty. > This is an important issue as the hook interface may be configured to perform critical warehouse operations. > See > {noformat} > ql/src/test/results/clientpositive/exchange_partition3.q.out > {noformat} > {noformat} > PREHOOK: query: -- This will exchange both partitions hr=1 and hr=2 > ALTER TABLE exchange_part_test1 EXCHANGE PARTITION (ds='2013-04-05') WITH TABLE exchange_part_test2 > PREHOOK: type: ALTERTABLE_EXCHANGEPARTITION > POSTHOOK: query: -- This will exchange both partitions hr=1 and hr=2 > ALTER TABLE exchange_part_test1 EXCHANGE PARTITION (ds='2013-04-05') WITH TABLE exchange_part_test2 > POSTHOOK: type: ALTERTABLE_EXCHANGEPARTITION > {noformat} > Seems it should also print output fields. -- This message was sent by Atlassian JIRA (v6.3.4#6332)