Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0EC6F200C5C for ; Thu, 20 Apr 2017 21:55:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0D69C160B9F; Thu, 20 Apr 2017 19:55:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 552C7160B90 for ; Thu, 20 Apr 2017 21:55:16 +0200 (CEST) Received: (qmail 64096 invoked by uid 500); 20 Apr 2017 19:55:15 -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 64084 invoked by uid 99); 20 Apr 2017 19:55:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2017 19:55:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 60B7FCEE7A for ; Thu, 20 Apr 2017 19:55:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id DUwzlxbStaVB for ; Thu, 20 Apr 2017 19:55:12 +0000 (UTC) Received: from mail-ua0-f181.google.com (mail-ua0-f181.google.com [209.85.217.181]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 3C68C5F23E for ; Thu, 20 Apr 2017 19:55:12 +0000 (UTC) Received: by mail-ua0-f181.google.com with SMTP id f10so62464653uaa.2 for ; Thu, 20 Apr 2017 12:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=4UrAedDzhK8/LlYpvauSPi98e1CAtLGC33lY4GdARgc=; b=XjvBWhqLa7caBirfVXc05wz24kvjlGuuUy4e6DV1VFOvHyhms+Gr1/raXIGp1w2BV/ +Gtl3DP426bB09iVXfAqv08HF3FrkjSYUIZ+UVQREsMESNo0sVtzpSF2ebgN0paJL+ZA WVaByZSdVEbaUB3DoCh2QDm2w8lFOjALIPPPsR619J8G1WvakrnCA9WZ18jdsfQVxHGv fh7h9mdlZGdqk+2lOv+9t8t1xzhBaB1OKjW+mR1r3+tToAerktWd3Dyf8fucqmaKI5zq S6Di+slf9xdEcwesrUjwmIUgKSlzORIA/tQuEx+4nvxCiuBQl4gySd8KxPOIBbvzjqUA p1jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=4UrAedDzhK8/LlYpvauSPi98e1CAtLGC33lY4GdARgc=; b=SGfiNjoMV/hhIWMJ9mLfWXhq5YVOMYyGklHSRXYzeLhyVn43rGhIGilDABToF+Z1rN 3EbFT9/aCyoxxUh3uIqEIF2UuA/YKP6RCP+n6hqh18ZtPGmMixaRBipe43R6xlbhjOhm 9uujIIQdfqEk3GghQaYX3cAqV6HgHaIiN2AmIHMsj9FzbuAtisg4zQpARoXEOY3G5NlZ Alhmu8FEUK4IGRbv4gezDPMYQZveQGMtHKkF755Ly9QImlrxjkfVglgW0XYjUM5C+wKe OibuHsqx+/HqkItavKBuglKVgRhTL2AWuhqDO0dWT7rdFl994A3eWAf4j+Gfq8gikrwD zApQ== X-Gm-Message-State: AN3rC/6JZ6mSvftUYnmvS38N3duR+jk+iptT7YtQTREaBg/cPQ0U0qrq qx1Hfa+v+Hu+9barPYuSAkleCO/aluvt X-Received: by 10.176.91.21 with SMTP id u21mr3848846uae.138.1492718105919; Thu, 20 Apr 2017 12:55:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.216.135 with HTTP; Thu, 20 Apr 2017 12:55:05 -0700 (PDT) In-Reply-To: References: From: Robert Yokota Date: Thu, 20 Apr 2017 12:55:05 -0700 Message-ID: Subject: Re: ValueFilter returning earlier values To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=f403045f8e90740ab4054d9e8432 archived-at: Thu, 20 Apr 2017 19:55:17 -0000 --f403045f8e90740ab4054d9e8432 Content-Type: text/plain; charset=UTF-8 I ran into this issue as well: https://yokota.blog/2016/10/20/tips-on-writing-custom-hbase-filters/ Regards, Robert On Thu, Apr 20, 2017 at 10:24 AM, Ted Yu wrote: > The JIRA number is HBASE-17125 > > On Thu, Apr 20, 2017 at 6:40 AM, Anoop John wrote: > > > This is because of the way with which filters and versions are checked > > in RS. We first do filter op and then apply version. The value filter > > might have filtered out latest cell but it is applied and succeed on > > older version and then only the version count begin.. There is an > > open issue in HBase jira which aims at solving this unexpected > > behavior. > > > > -Anoop- > > > > On Thu, Apr 20, 2017 at 1:04 PM, Sreeram wrote: > > > Hi, > > > > > > When I scan with ValueFilter on a column, I see that it returns older > > > versions too if they happen to match the value in the ValueFilter. > > > > > > The table column family has the property VERSIONS set to 1. I had set > > > setMaxVersions to 1 in the scan object. > > > > > > I was expecting the value filter to return only the latest values for > > > the column, provided they match the filter. > > > > > > Is this the expected behaviour of ValueFilter? Any suggestions if I > > > must be setting any options to skip the older values from coming in > > > the result? > > > > > > Thank you > > > > > > Regards, > > > Sreeram > > > --f403045f8e90740ab4054d9e8432--