Return-Path: X-Original-To: apmail-tajo-dev-archive@minotaur.apache.org Delivered-To: apmail-tajo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B330105CE for ; Fri, 6 Dec 2013 07:07:10 +0000 (UTC) Received: (qmail 98983 invoked by uid 500); 6 Dec 2013 07:07:06 -0000 Delivered-To: apmail-tajo-dev-archive@tajo.apache.org Received: (qmail 98962 invoked by uid 500); 6 Dec 2013 07:07:04 -0000 Mailing-List: contact dev-help@tajo.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tajo.incubator.apache.org Delivered-To: mailing list dev@tajo.incubator.apache.org Received: (qmail 98948 invoked by uid 99); 6 Dec 2013 07:07:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 07:07:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 06 Dec 2013 07:07:01 +0000 Received: (qmail 98115 invoked by uid 99); 6 Dec 2013 07:06:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 07:06:36 +0000 Date: Fri, 6 Dec 2013 07:06:36 +0000 (UTC) From: "Hyunsik Choi (JIRA)" To: dev@tajo.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (TAJO-304) drop table command should not remove data files in default MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TAJO-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hyunsik Choi updated TAJO-304: ------------------------------ Attachment: TAJO-304.patch I changed the plan. I modified DDL statement as follows: {code} DROP TABLE table_name [PURGE] {code} PURGE is given, 'DROP TABLE' deletes the table from catalog and purges all data. Otherwise, 'DROP TABLE' just deletes a table from catalog. > drop table command should not remove data files in default > ---------------------------------------------------------- > > Key: TAJO-304 > URL: https://issues.apache.org/jira/browse/TAJO-304 > Project: Tajo > Issue Type: Improvement > Components: catalog, master > Reporter: Hyunsik Choi > Assignee: Hyunsik Choi > Fix For: 0.8-incubating > > Attachments: TAJO-304.patch > > > h3. Problem > In the current implementation, Tajo removes a data directory when a user issues 'drop table' command. But, it is very dangerous in many cases. For example, some users may lost large data sets. > h3. Solution > In default, Tajo should not remove a data directory, and we need to add a config property 'tajo.command.drop_table.data_removal' for those who want to change the behavior of 'drop table'. -- This message was sent by Atlassian JIRA (v6.1#6144)