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 0E98BD769 for ; Mon, 29 Oct 2012 16:28:16 +0000 (UTC) Received: (qmail 59430 invoked by uid 500); 29 Oct 2012 16:28:15 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 59144 invoked by uid 500); 29 Oct 2012 16:28: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 59084 invoked by uid 500); 29 Oct 2012 16:28:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 59046 invoked by uid 99); 29 Oct 2012 16:28:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2012 16:28:12 +0000 Date: Mon, 29 Oct 2012 16:28:12 +0000 (UTC) From: "Sambavi Muthukrishnan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <252747366.39480.1351528092417.JavaMail.jiratomcat@arcas> In-Reply-To: <1673902133.17435.1351018752057.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HIVE-3610) Add a command "Explain dependency ..." 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-3610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486123#comment-13486123 ] Sambavi Muthukrishnan commented on HIVE-3610: --------------------------------------------- Namit: the set of inputs should be available through hooks. But this seems like a generically useful feature - to be able to determine the dependencies for a given query, which are the sets of inputs that are processed, hence decided to make it a command that is available in HIVE. > Add a command "Explain dependency ..." > -------------------------------------- > > Key: HIVE-3610 > URL: https://issues.apache.org/jira/browse/HIVE-3610 > Project: Hive > Issue Type: New Feature > Components: Query Processor > Affects Versions: 0.9.0 > Reporter: Sambavi Muthukrishnan > Assignee: Sambavi Muthukrishnan > Priority: Minor > Attachments: explain_dependency.1.patch, explain_dependency.2.patch > > > Add a new command "EXPLAIN DEPENDENCY". > Any query can be passed to EXPLAIN DEPENDENCY as with EXPLAIN (FORMATTED/EXTENDED). The output of this command will be JSON that provides the list of tables and partitions that the query depends on. > One possible use case is to determine the set of tables/views that are used by a view, and the set of partitions that are used by a given query on that view. This will allow a view to be replicated from one Hive instance to another, since we can determine the set of objects that need to be replicated for replication of the view to be successful. > Example output: > {"input_tables":[{"tablename": "default@test_sambavi_v2", "tabletype": "EXTERNAL_TABLE"}, {"tablename": "default@test_sambavi_v1", "tabletype": "TABLE"}], "input partitions":["default@srcpart@ds=2008-04-08/hr=11","default@srcpart@ds=2008-04-08/hr=12"]} -- 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