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 7F3D611BFC for ; Fri, 2 May 2014 05:24:51 +0000 (UTC) Received: (qmail 64826 invoked by uid 500); 2 May 2014 05:24:48 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 64570 invoked by uid 500); 2 May 2014 05:24:43 -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 64487 invoked by uid 99); 2 May 2014 05:24:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2014 05:24:41 +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 05:24:41 +0000 Received: (qmail 64147 invoked by uid 99); 2 May 2014 05:24:17 -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 05:24:17 +0000 Date: Fri, 2 May 2014 05:24:17 +0000 (UTC) From: "James Taylor (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (PHOENIX-882) Updatable view should check view condition upon upsert 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-882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Taylor resolved PHOENIX-882. ---------------------------------- Resolution: Fixed > Updatable view should check view condition upon upsert > ------------------------------------------------------ > > Key: PHOENIX-882 > URL: https://issues.apache.org/jira/browse/PHOENIX-882 > Project: Phoenix > Issue Type: Bug > Reporter: Lars Hofhansl > Fix For: 3.0.0, 4.0.0 > > Attachments: PHOENIX-882.patch > > > Updating a row can make it disappear from the view: > create table X (X varchar primary key, Y varchar); > create view X1 as select * from X where Y = '1'; > upsert into X1 values('1', '1'); > // now the row with key '1' is visible through the view > upsert into X1 values('1', '2'); > // row with key '1' is no longer visible > upsert into X1 values('2', '2'); > // the new row never shows up in the view -- This message was sent by Atlassian JIRA (v6.2#6252)