Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 02D2C11A7F for ; Fri, 2 May 2014 04:01:39 +0000 (UTC) Received: (qmail 86575 invoked by uid 500); 2 May 2014 04:01:38 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 86544 invoked by uid 500); 2 May 2014 04:01:37 -0000 Mailing-List: contact dev-help@phoenix.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.incubator.apache.org Delivered-To: mailing list dev@phoenix.incubator.apache.org Received: (qmail 86536 invoked by uid 99); 2 May 2014 04:01:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2014 04:01:37 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 02 May 2014 04:01:36 +0000 Received: (qmail 86375 invoked by uid 99); 2 May 2014 04:01:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2014 04:01:16 +0000 Date: Fri, 2 May 2014 04:01:16 +0000 (UTC) From: "alex kamil (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-957) increment column value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PHOENIX-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13987303#comment-13987303 ] alex kamil commented on PHOENIX-957: ------------------------------------ do you mean https://issues.apache.org/jira/browse/PHOENIX-400 ? > increment column value > ---------------------- > > Key: PHOENIX-957 > URL: https://issues.apache.org/jira/browse/PHOENIX-957 > Project: Phoenix > Issue Type: Improvement > Reporter: alex kamil > > allow incrementing column value using standard update syntax: > UPDATE table1 SET col1 = col1 + 1 WHERE col2>7; > for now using upsert select as a workaround: > UPSERT INTO table1 (id, col1) SELECT id, col1+1 FROM table1 WHERE col2>7; -- This message was sent by Atlassian JIRA (v6.2#6252)