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 CF13FEEE6 for ; Thu, 17 Jan 2013 06:42:29 +0000 (UTC) Received: (qmail 55272 invoked by uid 500); 17 Jan 2013 06:42:29 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 55063 invoked by uid 500); 17 Jan 2013 06:42:28 -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 55013 invoked by uid 500); 17 Jan 2013 06:42:26 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 55009 invoked by uid 99); 17 Jan 2013 06:42:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2013 06:42:26 +0000 Date: Thu, 17 Jan 2013 06:42:26 +0000 (UTC) From: "Namit Jain (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-3908) create view statement's outputs contains the view and a temporary dir. 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-3908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13555916#comment-13555916 ] Namit Jain commented on HIVE-3908: ---------------------------------- ~/hive/hive_commit3/build/dist/bin$ ./hive Logging initialized using configuration in jar:file:/Users/njain/hive/hive_commit3/build/dist/lib/hive-common-0.11.0-SNAPSHOT.jar!/hive-log4j.properties Hive history file=/tmp/njain/hive_job_log_njain_201301171210_1882377220.txt hive> set hive.exec.post.hooks=org.apache.hadoop.hive.ql.hooks.PostExecutePrinter; hive> CREATE VIEW view1 AS SELECT value FROM src WHERE key=86; FAILED: Error in metadata: AlreadyExistsException(message:Table view1 already exists) FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask hive> drop view view1; POSTHOOK: query: drop view view1 POSTHOOK: type: DROPVIEW POSTHOOK: Input: default@view1 POSTHOOK: Output: default@view1 OK Time taken: 1.248 seconds hive> CREATE VIEW view1 AS SELECT value FROM src WHERE key=86; POSTHOOK: query: CREATE VIEW view1 AS SELECT value FROM src WHERE key=86 POSTHOOK: type: CREATEVIEW POSTHOOK: Output: default@view1 POSTHOOK: Output: file:/tmp/njain/hive_2013-01-17_12-10-42_129_7725102253266073600/-mr-10000 OK Time taken: 0.224 seconds hive> This does not show up in the ant file, since the directory name is masked out. For the above query, there should be only 1 output, the view. It should not contain the temporary directory. > create view statement's outputs contains the view and a temporary dir. > ---------------------------------------------------------------------- > > Key: HIVE-3908 > URL: https://issues.apache.org/jira/browse/HIVE-3908 > Project: Hive > Issue Type: Bug > Reporter: Namit Jain > > It should only contain the view -- 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