Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 48AFFB2E3 for ; Wed, 4 Jan 2012 23:26:27 +0000 (UTC) Received: (qmail 9437 invoked by uid 500); 4 Jan 2012 23:26:27 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 9414 invoked by uid 500); 4 Jan 2012 23:26:27 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 9406 invoked by uid 99); 4 Jan 2012 23:26:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 23:26:26 +0000 X-ASF-Spam-Status: No, hits=-2001.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 23:26:24 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A7F4413882E for ; Wed, 4 Jan 2012 23:25:39 +0000 (UTC) Date: Wed, 4 Jan 2012 23:25:39 +0000 (UTC) From: "Kannan Muthukkaruppan (Created) (JIRA)" To: issues@hbase.apache.org Message-ID: <651353479.7086.1325719539689.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HBASE-5126) AND (USING FilterList) of two ColumnPrefixFilters broken 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 AND (USING FilterList) of two ColumnPrefixFilters broken -------------------------------------------------------- Key: HBASE-5126 URL: https://issues.apache.org/jira/browse/HBASE-5126 Project: HBase Issue Type: Bug Reporter: Kannan Muthukkaruppan [Notice this in 89 branch. Possibly an issue in trunk also.] A test which does a columnPrefixFilter("tag0") AND columnPrefixFilter("tag1") should return 0 kvs; instead it returns kvs with prefix "tag0". {code} table = HTable.new(conf, tableName) put = Put.new(Bytes.toBytes("row")) put.add(cf1name, Bytes.toBytes("tag0"), Bytes.toBytes("value0")) put.add(cf1name, Bytes.toBytes("tag1"), Bytes.toBytes("value1")) put.add(cf1name, Bytes.toBytes("tag2"), Bytes.toBytes("value2")) table.put(put) # Test for AND Two Column Prefix Filters filter1 = ColumnPrefixFilter.new(Bytes.toBytes("tag0")); filter2 = ColumnPrefixFilter.new(Bytes.toBytes("tag2")); filters = FilterList.new(FilterList::Operator::MUST_PASS_ALL); filters.addFilter(filter1); filters.addFilter(filter1); get = Get.new(Bytes.toBytes("row")) get.setFilter(filters) get.setMaxVersions(); keyValues = table.get(get).raw() keyValues.each do |keyValue| puts "Key=#{Bytes.toStringBinary(keyValue.getQualifier())}; Value=#{Bytes.toStringBinary(keyValue.getValue())}; Timestamp=#{keyValue.getTimestamp()}" end {code} outputs: {code} Key=tag0; Value=value0; Timestamp=1325719223523 {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira