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 BBAA7200CB5 for ; Wed, 12 Jul 2017 12:54:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BA292167DA3; Wed, 12 Jul 2017 10:54:08 +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 0D1CD167BC0 for ; Wed, 12 Jul 2017 12:54:07 +0200 (CEST) Received: (qmail 47839 invoked by uid 500); 12 Jul 2017 10:54:07 -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 47830 invoked by uid 99); 12 Jul 2017 10:54:07 -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; Wed, 12 Jul 2017 10:54:07 +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 926DC1936D9 for ; Wed, 12 Jul 2017 10:54:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, 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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ZxPIQrMAodZp for ; Wed, 12 Jul 2017 10:54:03 +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 72008628B5 for ; Wed, 12 Jul 2017 10:48: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 CF660E0D89 for ; Wed, 12 Jul 2017 10:48: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 316EF246FE for ; Wed, 12 Jul 2017 10:48:00 +0000 (UTC) Date: Wed, 12 Jul 2017 10:48:00 +0000 (UTC) From: "Ashwini K (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CARBONDATA-1290) [branch-1.1] delete problem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Jul 2017 10:54:08 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-1290?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16083789#comment-16083789 ]=20 Ashwini K commented on CARBONDATA-1290: --------------------------------------- delete is working fine for me . could you please share your table schema an= d data file you are using ? > [branch-1.1] delete problem > --------------------------- > > Key: CARBONDATA-1290 > URL: https://issues.apache.org/jira/browse/CARBONDATA-129= 0 > Project: CarbonData > Issue Type: Bug > Reporter: sehriff =E3=80=90FFCS=E7=A0=94=E7=A9=B6=E9=99=A2=E3= =80=91 > > 1.max function is not return the right result; > scala> cc.sql("select * from qqdata2.fullappend where id=3D19999999").sho= w(false) > +--------+------------------------+----------+-----------------+------+--= --+----------------------+----+ > |id |qqnum |nick |age |gender|au= th|qunnum |mvcc| > +--------+------------------------+----------+-----------------+------+--= --+----------------------+----+ > |19999999|19999999aaaaaaaa19999999|2009-05-27|19999999c19999999|1 |1 = |19999999dddddd19999999|1 | > +--------+------------------------+----------+-----------------+------+--= --+----------------------+----+ > scala> cc.sql("select max(id) from qqdata2.fullappend ").show(false) > +-------+ > |max(id)| > +-------+ > |9999999| > +-------+ > 2.delete error > scala> cc.sql("delete from qqdata2.fullappend where id>1 and id<100000").= show > 17/07/11 17:32:33 AUDIT ProjectForDeleteCommand:[Thread-1] Delete data re= quest has been received for qqdata2.fullappend. > [Stage 21:> (0 + = 2) / 2]17/07/11 17:32:52 WARN TaskSetManager: Lost task 1.0 in stage 21.0 (= TID 40, executor 2): java.lang.ArrayIndexOutOfBoundsException: 1 > at org.apache.carbondata.core.mutate.CarbonUpdateUtil.getRequired= FieldFromTID(CarbonUpdateUtil.java:67) > at org.apache.carbondata.core.mutate.CarbonUpdateUtil.getSegmentW= ithBlockFromTID(CarbonUpdateUtil.java:76) > at org.apache.spark.sql.execution.command.deleteExecution$$anonfu= n$4.apply(IUDCommands.scala:555) > at org.apache.spark.sql.execution.command.deleteExecution$$anonfu= n$4.apply(IUDCommands.scala:552) > at scala.collection.Iterator$$anon$11.next(Iterator.scala:409) > at org.apache.spark.shuffle.sort.BypassMergeSortShuffleWriter.wri= te(BypassMergeSortShuffleWriter.java:150) > at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTa= sk.scala:96) > at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTa= sk.scala:53) > at org.apache.spark.scheduler.Task.run(Task.scala:99) > at org.apache.spark.executor.Executor$TaskRunner.run(Executor.sca= la:322) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolEx= ecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:617) > at java.lang.Thread.run(Thread.java:745) -- This message was sent by Atlassian JIRA (v6.4.14#64029)