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 5C450200CBE for ; Fri, 23 Jun 2017 04:24:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5B034160BF1; Fri, 23 Jun 2017 02:24:07 +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 A11B9160BE7 for ; Fri, 23 Jun 2017 04:24:06 +0200 (CEST) Received: (qmail 40451 invoked by uid 500); 23 Jun 2017 02:24:05 -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 40439 invoked by uid 99); 23 Jun 2017 02:24:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jun 2017 02:24:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5E88E191E76 for ; Fri, 23 Jun 2017 02:24:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.702 X-Spam-Level: X-Spam-Status: No, score=-98.702 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id r7wKKlXlk7sj for ; Fri, 23 Jun 2017 02:24:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 12D435F60D for ; Fri, 23 Jun 2017 02:24: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 543C5E00A3 for ; Fri, 23 Jun 2017 02:24:00 +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 0B8842193F for ; Fri, 23 Jun 2017 02:24:00 +0000 (UTC) Date: Fri, 23 Jun 2017 02:24:00 +0000 (UTC) From: "chenerlu (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CARBONDATA-1203) insert data caused many duplicated data on spark 1.6.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 23 Jun 2017 02:24:07 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16060325#comment-16060325 ] chenerlu edited comment on CARBONDATA-1203 at 6/23/17 2:23 AM: --------------------------------------------------------------- Hi, I encounter same problem. Issue can be summarized as follows. Step 1: create a carbon table. cc.sql("CREATE TABLE IF NOT EXISTS t3 (id Int, name String) STORED BY 'carbondata'") Step 2: load data, then t3 will have 10 records cc.sql("LOAD DATA LOCAL INPATH 'mypathofdata' INTO TABLE t3 ") Step 3: insert constant into table t3 cc.sql("INSERT INTO TABLE t3 SELECT 1, 'jack' FROM t3") Step4: count table t3 cc.sql("SELECT count (\*) FROM t3") Actual result: t3 will have 20 records. Expected result: t3 should have 11 records or throw sql.AnalysisException (This will be same as Hive table I think) Any idea about this issue, which solution is better ? [~ravi.pesala] was (Author: chenerlu): Hi, I encounter same problem. Issue can be summarized as follows. Step 1: create a carbon table. cc.sql("CREATE TABLE IF NOT EXISTS t3 (id Int, name String) STORED BY 'carbondata'") Step 2: load data, then t3 will have 10 records cc.sql("LOAD DATA LOCAL INPATH 'mypathofdata' INTO TABLE t3 ") Step 3: insert constant into table t3 cc.sql("INSERT INTO TABLE t3 SELECT 1, 'jack' FROM t3") Step4: count table t3 cc.sql("SELECT count (*) FROM t3") Actual result: t3 will have 20 records. Expected result: t3 should have 11 records or throw sql.AnalysisException (This will be same as Hive table I think) Any idea about this issue, which solution is better ? [~ravi.pesala] > insert data caused many duplicated data on spark 1.6.2 > ------------------------------------------------------- > > Key: CARBONDATA-1203 > URL: https://issues.apache.org/jira/browse/CARBONDATA-1203 > Project: CarbonData > Issue Type: Bug > Reporter: Jarck > > I use branch-1.1 do insert test on spark 1.6.2 in my local machine > I try to run the sql as below to insert a data > spark.sql(s""" > insert into $tableName select $id,'$date','$country','$testName' > ,'$phoneType','$serialname',$salary from $tableName > """).show() > at last the data has been inserted successfully, but it inserted many duplicated data -- This message was sent by Atlassian JIRA (v6.4.14#64029)