Return-Path: Delivered-To: apmail-hive-dev-archive@www.apache.org Received: (qmail 14911 invoked from network); 5 Apr 2011 05:28:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Apr 2011 05:28:47 -0000 Received: (qmail 67754 invoked by uid 500); 5 Apr 2011 02:38:44 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 67735 invoked by uid 500); 5 Apr 2011 02:38:44 -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 67727 invoked by uid 500); 5 Apr 2011 02:38:43 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 67723 invoked by uid 99); 5 Apr 2011 02:38:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Apr 2011 02:38:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Apr 2011 02:38:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BC7DE9285C for ; Tue, 5 Apr 2011 02:38:05 +0000 (UTC) Date: Tue, 5 Apr 2011 02:38:05 +0000 (UTC) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1122034470.34034.1301971085768.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1032080826.33878.1301965212043.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-2090) Add "DROP DATABASE ... FORCE" 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-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015730#comment-13015730 ] Carl Steinbach commented on HIVE-2090: -------------------------------------- Is the purpose of this ticket to make "DROP DATABASE x FORCE" behave like the ANSI version of "DROP DATABASE x", e.g. delete x along with any tables in x? As I recall the reason that DROP DATABASE does not currently adhere to ANSI semantics is that we were worried about providing in the absence of a working authorization system. Now that the authorization system exists, it seems like "DROP DATABASE x FORCE" should be the default behavior, and the current behavior should be something that you can enable via a configuration parameter, e.g. hive.exec.drop.ignorenonempty=false. Also, I the change to DDLTask.dropDatabase() introduces concurrency problems since you're not operating in a transaction. > Add "DROP DATABASE ... FORCE" > ----------------------------- > > Key: HIVE-2090 > URL: https://issues.apache.org/jira/browse/HIVE-2090 > Project: Hive > Issue Type: New Feature > Reporter: Siying Dong > Assignee: Siying Dong > Priority: Minor > Attachments: HIVE-2090.1.patch > > > A "DROP DATABASE ... FORCE" will be useful, when we use a database for isolation when doing some tests. Being able to force cleaning up the database will make test cleaning up easier. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira