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 D5B78200CE0 for ; Fri, 11 Aug 2017 05:04:35 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D471416CB83; Fri, 11 Aug 2017 03:04:35 +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 26B8C16CB7F for ; Fri, 11 Aug 2017 05:04:35 +0200 (CEST) Received: (qmail 38150 invoked by uid 500); 11 Aug 2017 03:04:34 -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 38054 invoked by uid 99); 11 Aug 2017 03:04: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; Fri, 11 Aug 2017 03:04: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 8D27E1A084E for ; Fri, 11 Aug 2017 03:04:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id sYe5qP2lkPwb for ; Fri, 11 Aug 2017 03:04: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 18DB75F613 for ; Fri, 11 Aug 2017 03:04: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 62B08E0635 for ; Fri, 11 Aug 2017 03:04: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 1ACAD21E14 for ; Fri, 11 Aug 2017 03:04:00 +0000 (UTC) Date: Fri, 11 Aug 2017 03:04:00 +0000 (UTC) From: "tian.yang (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (PHOENIX-4069) When use row timestamp table,del row1 by 'delete from table' , and I get failed by upsert row1 into the table. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 11 Aug 2017 03:04:36 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-4069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] tian.yang closed PHOENIX-4069. ------------------------------ > When use row timestamp table,del row1 by 'delete from table' , and I get failed by upsert row1 into the table. > ----------------------------------------------------------------------------------------------------------------- > > Key: PHOENIX-4069 > URL: https://issues.apache.org/jira/browse/PHOENIX-4069 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.10.0 > Reporter: tian.yang > > 0: jdbc:phoenix:> CREATE TABLE IF NOT EXISTS T1( > . . . . . . . . > C_DAY BIGINT NOT NULL, > . . . . . . . . > C_KEY VARCHAR NOT NULL, > . . . . . . . . > C_VAL BIGINT > . . . . . . . . > CONSTRAINT PK_T1 PRIMARY KEY(C_DAY ROW_TIMESTAMP,C_KEY)); > No rows affected (2.467 seconds) > 0: jdbc:phoenix:> UPSERT INTO T1 (C_DAY,C_KEY,C_VAL) VALUES (1502095662895,'A',9); > 1 row affected (0.013 seconds) > 0: jdbc:phoenix:> SELECT * FROM T1; > +----------------+--------+--------+ > | C_DAY | C_KEY | C_VAL | > +----------------+--------+--------+ > | 1502095662895 | A | 9 | > +----------------+--------+--------+ > 1 row selected (0.029 seconds) > 0: jdbc:phoenix:> DELETE FROM T1; > 1 row affected (0.011 seconds) > 0: jdbc:phoenix:> SELECT * FROM T1; > +--------+--------+--------+ > | C_DAY | C_KEY | C_VAL | > +--------+--------+--------+ > +--------+--------+--------+ > No rows selected (0.028 seconds) > 0: jdbc:phoenix:> UPSERT INTO T1 (C_DAY,C_KEY,C_VAL) VALUES (1502095662895,'A',9); > 1 row affected (0.009 seconds) > 0: jdbc:phoenix:> SELECT * FROM T1; > +--------+--------+--------+ > | C_DAY | C_KEY | C_VAL | > +--------+--------+--------+ > +--------+--------+--------+ > No rows selected (0.027 seconds) > 0: jdbc:phoenix:> -- This message was sent by Atlassian JIRA (v6.4.14#64029)