Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7AB15200D45 for ; Thu, 19 Oct 2017 07:53:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 793A0160BEA; Thu, 19 Oct 2017 05:53:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C2C32160BEB for ; Thu, 19 Oct 2017 07:53:04 +0200 (CEST) Received: (qmail 56316 invoked by uid 500); 19 Oct 2017 05:53:03 -0000 Mailing-List: contact issues-help@carbondata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.apache.org Delivered-To: mailing list issues@carbondata.apache.org Received: (qmail 56023 invoked by uid 99); 19 Oct 2017 05:53:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2017 05:53:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E598F1A08DB for ; Thu, 19 Oct 2017 05:53:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id q76JuPG8XoIj for ; Thu, 19 Oct 2017 05:53:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id ECE2B5FD33 for ; Thu, 19 Oct 2017 05:53:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3B662E2576 for ; Thu, 19 Oct 2017 05:53:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 76273243A7 for ; Thu, 19 Oct 2017 05:53:00 +0000 (UTC) Date: Thu, 19 Oct 2017 05:53:00 +0000 (UTC) From: "wyp (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CARBONDATA-1595) Support static and partition dynamic in insert into/overwrite DML MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 19 Oct 2017 05:53:05 -0000 wyp created CARBONDATA-1595: ------------------------------- Summary: Support static and partition dynamic in insert into/overwrite DML Key: CARBONDATA-1595 URL: https://issues.apache.org/jira/browse/CARBONDATA-1595 Project: CarbonData Issue Type: Sub-task Components: sql Affects Versions: 1.2.0 Reporter: wyp In [CARBONDATA-910|https://issues.apache.org/jira/browse/CARBONDATA-910] carbondata implement partition feature, it's very useful. But if we want add partition data in carbondata table,we must be use {{ alter}} syntax as following: {code} carbon.sql("ALTER TABLE temp.test_table ADD PARTITION('2017-10-18', '2017-10-19')") {code} If you have many partitions that should be add to some table, you should run the sql many times, It's boring and inefficiency. So it;s very useful to support static and partition dynamic in insert into/overwrite DML: {code} Static partition: INSERT OVERWRITE TABLE tablename1 [PARTITION (partcol1=val1) [IF NOT EXISTS]] select_statement1 FROM from_statement; INSERT INTO TABLE tablename1 [PARTITION (partcol1=val1)] select_statement1 FROM from_statement; Dynamic partition: INSERT OVERWRITE TABLE tablename1 [PARTITION (partcol1) [IF NOT EXISTS]] select_statement1 FROM from_statement; INSERT INTO TABLE tablename1 [PARTITION (partcol1)] select_statement1 FROM from_statement; {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)