Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4DD4F10D23 for ; Tue, 1 Apr 2014 04:23:24 +0000 (UTC) Received: (qmail 23726 invoked by uid 500); 1 Apr 2014 04:23:22 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 22978 invoked by uid 500); 1 Apr 2014 04:23:18 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 22506 invoked by uid 99); 1 Apr 2014 04:23:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 04:23:16 +0000 Date: Tue, 1 Apr 2014 04:23:16 +0000 (UTC) From: "Ted Yu (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HBASE-10878) Operator | for visibility label doesn't work 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/HBASE-10878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu resolved HBASE-10878. ---------------------------- Resolution: Not a Problem > Operator | for visibility label doesn't work > -------------------------------------------- > > Key: HBASE-10878 > URL: https://issues.apache.org/jira/browse/HBASE-10878 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > > I used setup similar to that from HBASE-10863, with fix for HBASE-10863 : > {code} > hbase(main):003:0> scan 'hbase:labels' > ROW COLUMN+CELL > \x00\x00\x00\x01 column=f:\x00, timestamp=1395944796030, value=system > \x00\x00\x00\x01 column=f:hbase, timestamp=1395944796030, value= > \x00\x00\x00\x02 column=f:\x00, timestamp=1395951045442, value=TOP_SECRET > \x00\x00\x00\x02 column=f:hrt_qa, timestamp=1395951229682, value= > \x00\x00\x00\x02 column=f:hrt_qa1, timestamp=1395951270297, value= > \x00\x00\x00\x02 column=f:mapred, timestamp=1395958442326, value= > \x00\x00\x00\x03 column=f:\x00, timestamp=1395952069731, value=TOP_TOP_SECRET > \x00\x00\x00\x03 column=f:mapred, timestamp=1395956032141, value= > \x00\x00\x00\x04 column=f:\x00, timestamp=1395971516605, value=A > \x00\x00\x00\x04 column=f:oozie, timestamp=1395971647859, value= > \x00\x00\x00\x05 column=f:\x00, timestamp=1395971520327, value=B > 5 row(s) in 0.0580 seconds > {code} > I did the following as user oozie using hbase shell: > {code} > hbase(main):001:0> scan 'tb', { AUTHORIZATIONS => ['A']} > ROW COLUMN+CELL > row column=f1:q, timestamp=1395971660859, value=v1 > row2 column=f1:q, timestamp=1395972271343, value=v2 > row3 column=f1:q, timestamp=1396067477702, value=v3 > 3 row(s) in 0.2050 seconds > hbase(main):002:0> scan 'tb', { AUTHORIZATIONS => ['A|B']} > ROW COLUMN+CELL > row2 column=f1:q, timestamp=1395972271343, value=v2 > 1 row(s) in 0.0150 seconds > hbase(main):003:0> scan 'tb', { AUTHORIZATIONS => ['B|A']} > ROW COLUMN+CELL > row2 column=f1:q, timestamp=1395972271343, value=v2 > 1 row(s) in 0.0260 seconds > {code} > Rows 'row' and 'row3' were inserted with label 'A'. > Row 'row2' was inserted without label. > Row 'row1' was inserted with label 'B'. > I would expect row1 to also be returned. -- This message was sent by Atlassian JIRA (v6.2#6252)