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 03121200B3C for ; Wed, 13 Jul 2016 23:17:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 01948160A6A; Wed, 13 Jul 2016 21:17:59 +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 4AA3E160A62 for ; Wed, 13 Jul 2016 23:17:58 +0200 (CEST) Received: (qmail 30975 invoked by uid 500); 13 Jul 2016 21:17:57 -0000 Mailing-List: contact commits-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 commits@hbase.apache.org Received: (qmail 30965 invoked by uid 99); 13 Jul 2016 21:17:57 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2016 21:17:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 59D45E04BE; Wed, 13 Jul 2016 21:17:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: appy@apache.org To: commits@hbase.apache.org Message-Id: <2aabee60b4dc4c96b873723f2a659025@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-16227 [Shell] Column value formatter not working in scans. Tested : manually using shell. Date: Wed, 13 Jul 2016 21:17:57 +0000 (UTC) archived-at: Wed, 13 Jul 2016 21:17:59 -0000 Repository: hbase Updated Branches: refs/heads/branch-1.3 922dc33fd -> 3ff9a458d HBASE-16227 [Shell] Column value formatter not working in scans. Tested : manually using shell. Change-Id: I9eef7efa68393a762ec872447f8e36dfc6d6f1bc Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/3ff9a458 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3ff9a458 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3ff9a458 Branch: refs/heads/branch-1.3 Commit: 3ff9a458d9557dcad8452f1ed10452b5d16df9b3 Parents: 922dc33 Author: Apekshit Sharma Authored: Wed Jul 13 14:01:38 2016 -0700 Committer: Apekshit Sharma Committed: Wed Jul 13 14:15:52 2016 -0700 ---------------------------------------------------------------------- hbase-shell/src/main/ruby/hbase/table.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/3ff9a458/hbase-shell/src/main/ruby/hbase/table.rb ---------------------------------------------------------------------- diff --git a/hbase-shell/src/main/ruby/hbase/table.rb b/hbase-shell/src/main/ruby/hbase/table.rb index 40095c8..9ebe9ad 100644 --- a/hbase-shell/src/main/ruby/hbase/table.rb +++ b/hbase-shell/src/main/ruby/hbase/table.rb @@ -448,6 +448,9 @@ EOF # This will overwrite any startrow/stoprow settings scan.setRowPrefixFilter(rowprefixfilter.to_java_bytes) if rowprefixfilter + # Clear converters from last scan. + @converters.clear() + columns.each do |c| family, qualifier = parse_column_name(c.to_s) if qualifier @@ -499,8 +502,6 @@ EOF count = 0 res = {} - @converters.clear() - # Start the scanner scan = scan == nil ? _hash_to_scan(args) : scan scanner = @table.getScanner(scan)