Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 12C2518BB1 for ; Thu, 29 Oct 2015 21:56:59 +0000 (UTC) Received: (qmail 52075 invoked by uid 500); 29 Oct 2015 21:56:57 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 52001 invoked by uid 500); 29 Oct 2015 21:56:57 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 51989 invoked by uid 99); 29 Oct 2015 21:56:56 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2015 21:56:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 62668C040B for ; Thu, 29 Oct 2015 21:56:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=esgyn.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id qjCn_ilEWb3Q for ; Thu, 29 Oct 2015 21:56:55 +0000 (UTC) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id A3F74429A6 for ; Thu, 29 Oct 2015 21:56:54 +0000 (UTC) Received: by wmeg8 with SMTP id g8so32963928wme.0 for ; Thu, 29 Oct 2015 14:56:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=esgyn.com; s=google; h=from:mime-version:thread-index:date:message-id:subject:to :content-type; bh=p2QPjI+zj/R2Fr870Sb8oGEIh+e+ViYMlAwtfvHnmho=; b=F6YQq4F+xbo0XeXEFaKZsQAKK3ANWocuvvGWkEp9b/2dfFwSF5zd48leBVppuwAvl8 XktL+dDl5sROgkLatpysF2hvTOiZ/4cI6Jtu4uz01uWq96l9+P/mkLToY9MS3g+yoUDx UxwTXdvsItG+nolEb4zSnrHPIARKJbT3ohN5w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:thread-index:date:message-id :subject:to:content-type; bh=p2QPjI+zj/R2Fr870Sb8oGEIh+e+ViYMlAwtfvHnmho=; b=QTh4UapyL1cKnvLFW1o375KhHoxwhpM+hAp+S5+9pleMuobvy0p3f4SPunK9lBN0AX FN02KRNdwS06exPkiD7pZxS6CNCln8sWsLLngkAv6vYuuZrG7y3U1nHIQV+4kz3ea6kY VlOxCjAvQtZhYkVOJmofNCB1ab2rEWuhun62sHTADfQfTHGktONysbTxa1cCB1OZlR+e 3II0U8BOb2cuZtgtEuLsfvPF39Q28nHaoMgbVjfAG6OHKMgxWGi+ydvYt83PWfKwuX+q 4n3LGaN5zn6YPB4YFK100Vwok3LVbPaBw7Tc0OZRBer26xq+yDxgmmJe9i+8LZXgcuGe M7rA== X-Gm-Message-State: ALoCoQmwaGU81PClb7RGuc3eCIe2fPsoDQ8xlF6GDf8e7VY65pZZZ5cfmiiORzyyyRmlPUgIWvsm X-Received: by 10.28.143.1 with SMTP id r1mr9968508wmd.80.1446155813737; Thu, 29 Oct 2015 14:56:53 -0700 (PDT) From: Anoop Sharma MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: AdESlImnpw3yFvhZQem5e/JGgOCtWA== Date: Thu, 29 Oct 2015 14:56:31 -0700 Message-ID: Subject: delete of cells with visibility expressions To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a11468218916fc70523456393 --001a11468218916fc70523456393 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable hi running into an issue related to visibility expressions and delete. Example run from hbase shell is listed below. Will appreciate any help on this issue. thanks. In the example below, user running queries has =E2=80=98MANAGER=E2=80=99 au= thorization. *First example:* add a column with visib expr =E2=80=98MANAGER=E2=80=99 delete it by passing in visibility of =E2=80=98MANAGER=E2=80=99 This works and scan doesn=E2=80=99t return anything. *Second example:* add a column with visib expr =E2=80=98MANAGER=E2=80=99 delete it by not passing in any visibility. This doesn=E2=80=99t delete the column. Scan doesn=E2=80=99t return the row but RAW scan shows the column marked as deleteColumn. Now if delete is done again with visibility of =E2=80=98MANAGER=E2=80=99, it still doesn=E2=80=99t delete it and scan returns the original column. *Example 1:* hbase(main):096:0> create 'HBT1', 'cf' hbase(main):098:0* *put 'HBT1', 'John', 'cf:a', 'CA', {VISIBILITY=3D>'MANAGER'}* hbase(main):099:0> *scan 'HBT1'* ROW COLUMN+CELL John column=3Dcf:a, timestamp=3D1446154722055, value=3DCA 1 row(s) in 0.0030 seconds hbase(main):100:0> *delete 'HBT1', 'John', 'cf:a', {VISIBILITY=3D>'MANAGER'= }* 0 row(s) in 0.0030 seconds hbase(main):101:0> *scan 'HBT1'* ROW COLUMN+CELL 0 row(s) in 0.0030 seconds *Example 2:* hbase(main):010:0* *put 'HBT1', 'John', 'cf:a', 'CA', {VISIBILITY=3D>'MANAGER'}* 0 row(s) in 0.0040 seconds hbase(main):011:0> *scan 'HBT1'* ROW COLUMN+CELL John column=3Dcf:a, timestamp=3D1446155346473, value=3DCA 1 row(s) in 0.0060 seconds hbase(main):012:0> *delete 'HBT1', 'John', 'cf:a'* 0 row(s) in 0.0090 seconds hbase(main):013:0> *scan 'HBT1'* ROW COLUMN+CELL John column=3Dcf:a, timestamp=3D1446155346473, value=3DCA 1 row(s) in 0.0050 seconds hbase(main):014:0> *scan 'HBT1', {RAW =3D> true}* ROW COLUMN+CELL John column=3Dcf:a, timestamp=3D1446155346519, type=3DDeleteColumn 1 row(s) in 0.0060 seconds hbase(main):015:0> *delete 'HBT1', 'John', 'cf:a', {VISIBILITY=3D>'MANAGER'= }* 0 row(s) in 0.0030 seconds hbase(main):016:0> *scan 'HBT1'* ROW COLUMN+CELL John column=3Dcf:a, timestamp=3D1446155346473, value=3DCA 1 row(s) in 0.0040 seconds hbase(main):017:0> *scan 'HBT1', {RAW =3D> true}* ROW COLUMN+CELL John column=3Dcf:a, timestamp=3D1446155346601, type=3DDeleteColumn 1 row(s) in 0.0060 seconds --001a11468218916fc70523456393--