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 9941010EA0 for ; Tue, 3 Sep 2013 12:31:25 +0000 (UTC) Received: (qmail 89997 invoked by uid 500); 3 Sep 2013 12:31:25 -0000 Delivered-To: apmail-tajo-dev-archive@tajo.apache.org Received: (qmail 89872 invoked by uid 500); 3 Sep 2013 12:31:25 -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 89836 invoked by uid 99); 3 Sep 2013 12:31:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Sep 2013 12:31:17 +0000 X-ASF-Spam-Status: No, hits=-2002.4 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; Tue, 03 Sep 2013 12:31:13 +0000 Received: (qmail 88828 invoked by uid 99); 3 Sep 2013 12:30:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Sep 2013 12:30:51 +0000 Date: Tue, 3 Sep 2013 12:30:51 +0000 (UTC) From: "Hyunsik Choi (JIRA)" To: dev@tajo.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (TAJO-144) Implement INSERT OVERWRITE clause 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-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hyunsik Choi updated TAJO-144: ------------------------------ Attachment: TAJO-144.patch I've attached the patch. This patch provides 'INSERT OVERWRITE INTO' statement. This work follows the 'INSERT INTO' semantic of SQL standard. The semantics are as follows: {code} create table t1 (col1 int8, col2 int4, col3 float4); -- when a target table schema and output schema are equivalent to each other insert overwrite into t1 select l_orderkey, l_partkey, l_quantity from lineitem; -- when the output schema are smaller than the target table schema insert overwrite into t1 select l_orderkey from lineitem; -- when you want to specify certain target columns insert overwrite into t1 (col1, col3) select l_orderkey, l_quantity from lineitem; {code} > Implement INSERT OVERWRITE clause > --------------------------------- > > Key: TAJO-144 > URL: https://issues.apache.org/jira/browse/TAJO-144 > Project: Tajo > Issue Type: New Feature > Components: planner/optimizer > Reporter: Hyunsik Choi > Assignee: Hyunsik Choi > Fix For: 0.2-incubating > > Attachments: TAJO-144.patch > > > 'INSERT INTO' appends data into existing table. In contrast, 'INSERT OVERWRITE' will overwrite existing table data. It is used as an idiom in analytical fields based HDFS. We need it. -- 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