From dev-return-48723-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Tue Jan 23 17:21:05 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 73306180621 for ; Tue, 23 Jan 2018 17:21:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 63219160C39; Tue, 23 Jan 2018 16:21: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 A920A160C17 for ; Tue, 23 Jan 2018 17:21:04 +0100 (CET) Received: (qmail 59460 invoked by uid 500); 23 Jan 2018 16:21:03 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 59449 invoked by uid 99); 23 Jan 2018 16:21: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; Tue, 23 Jan 2018 16:21: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 261F518086F for ; Tue, 23 Jan 2018 16:21:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -107.911 X-Spam-Level: X-Spam-Status: No, score=-107.911 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, 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 1oqgvQRdC4P9 for ; Tue, 23 Jan 2018 16:21: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 1BA025F640 for ; Tue, 23 Jan 2018 16:21: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 631C2E0DEF for ; Tue, 23 Jan 2018 16:21: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 1F02425C63 for ; Tue, 23 Jan 2018 16:21:00 +0000 (UTC) Date: Tue, 23 Jan 2018 16:21:00 +0000 (UTC) From: "James Taylor (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-4551) Possible ColumnAlreadyExistsException is thrown from delete when autocommit off MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16336002#comment-16336002 ] James Taylor commented on PHOENIX-4551: --------------------------------------- +1. Thanks, [~rajeshbabu]! > Possible ColumnAlreadyExistsException is thrown from delete when autocommit off > ------------------------------------------------------------------------------- > > Key: PHOENIX-4551 > URL: https://issues.apache.org/jira/browse/PHOENIX-4551 > Project: Phoenix > Issue Type: Bug > Reporter: Romil Choksi > Assignee: Rajeshbabu Chintaguntla > Priority: Major > Fix For: 5.0.0, 4.14.0 > > Attachments: PHOENIX-4551.patch > > > Here are the simple steps to reproduce it. > {noformat} > 0: jdbc:phoenix:localhost> CREATE TABLE IF NOT EXISTS A (a INTEGER PRIMARY KEY,b UNSIGNED_INT,c BIGINT); > No rows affected (2.3 seconds) > 0: jdbc:phoenix:localhost> CREATE INDEX idx_global ON A (c); > No rows affected (7.282 seconds) > 0: jdbc:phoenix:localhost> CREATE LOCAL INDEX idx_local ON A (c); > No rows affected (11.322 seconds) > 0: jdbc:phoenix:localhost> !autocommit off > *Autocommit status: false* > 0: jdbc:phoenix:localhost> delete from A where a > 5; > *Error: ERROR 514 (42892): A duplicate column name was detected in the object definition or ALTER TABLE/VIEW statement. columnName=A.C (state=42892,code=514)* > org.apache.phoenix.schema.ColumnAlreadyExistsException: ERROR 514 (42892): A duplicate column name was detected in the object definition or ALTER TABLE/VIEW statement. columnName=A.C > at org.apache.phoenix.schema.PTableImpl.init(PTableImpl.java:529) > at org.apache.phoenix.schema.PTableImpl.(PTableImpl.java:421) > at org.apache.phoenix.schema.PTableImpl.makePTable(PTableImpl.java:305) > at org.apache.phoenix.compile.DeleteCompiler.compile(DeleteCompiler.java:730) > at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDeleteStatement.compilePlan(PhoenixStatement.java:771) > at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDeleteStatement.compilePlan(PhoenixStatement.java:759) > at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:387) > at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:377) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:376) > at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:364) > at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1738) > at sqlline.Commands.execute(Commands.java:822) > at sqlline.Commands.sql(Commands.java:732) > at sqlline.SqlLine.dispatch(SqlLine.java:813) > at sqlline.SqlLine.begin(SqlLine.java:686) > at sqlline.SqlLine.start(SqlLine.java:398) > at sqlline.SqlLine.main(SqlLine.java:291) > 0: jdbc:phoenix:localhost> > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)