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 098CE200CC5 for ; Tue, 11 Jul 2017 14:04:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0802B165BDF; Tue, 11 Jul 2017 12:04:00 +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 4D012165BDE for ; Tue, 11 Jul 2017 14:03:59 +0200 (CEST) Received: (qmail 25569 invoked by uid 500); 11 Jul 2017 12:03:58 -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 25529 invoked by uid 99); 11 Jul 2017 12:03:57 -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; Tue, 11 Jul 2017 12:03:57 +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 E80891960DD for ; Tue, 11 Jul 2017 12:03:56 +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 5L4v4R4U05em for ; Tue, 11 Jul 2017 12:03:55 +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 8B21962806 for ; Tue, 11 Jul 2017 11:58: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 F180DE0D8F for ; Tue, 11 Jul 2017 11:58: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 3008D246B8 for ; Tue, 11 Jul 2017 11:58:00 +0000 (UTC) Date: Tue, 11 Jul 2017 11:58:00 +0000 (UTC) From: "sehriff (JIRA)" To: issues@carbondata.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CARBONDATA-1290) [branch-1.1]-max() and delete problem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 11 Jul 2017 12:04:00 -0000 [ https://issues.apache.org/jira/browse/CARBONDATA-1290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16082104#comment-16082104 ] sehriff commented on CARBONDATA-1290: ------------------------------------- max works right because column id is of string type,but delete problem is valid. > [branch-1.1]-max() and delete problem > ------------------------------------- > > Key: CARBONDATA-1290 > URL: https://issues.apache.org/jira/browse/CARBONDATA-1290 > Project: CarbonData > Issue Type: Bug > Reporter: sehriff > > 1.max function is not return the right result; > scala> cc.sql("select * from qqdata2.fullappend where id=19999999").show(false) > +--------+------------------------+----------+-----------------+------+----+----------------------+----+ > |id |qqnum |nick |age |gender|auth|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 request 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.getRequiredFieldFromTID(CarbonUpdateUtil.java:67) > at org.apache.carbondata.core.mutate.CarbonUpdateUtil.getSegmentWithBlockFromTID(CarbonUpdateUtil.java:76) > at org.apache.spark.sql.execution.command.deleteExecution$$anonfun$4.apply(IUDCommands.scala:555) > at org.apache.spark.sql.execution.command.deleteExecution$$anonfun$4.apply(IUDCommands.scala:552) > at scala.collection.Iterator$$anon$11.next(Iterator.scala:409) > at org.apache.spark.shuffle.sort.BypassMergeSortShuffleWriter.write(BypassMergeSortShuffleWriter.java:150) > at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96) > at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53) > at org.apache.spark.scheduler.Task.run(Task.scala:99) > at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:322) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) -- This message was sent by Atlassian JIRA (v6.4.14#64029)