hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject hbase git commit: HBASE-16227 [Shell] Column value formatter not working in scans. Tested : manually using shell.
Date Wed, 13 Jul 2016 21:15:24 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 95d141f38 -> 8cf6adae7


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/8cf6adae
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8cf6adae
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8cf6adae

Branch: refs/heads/branch-1
Commit: 8cf6adae7280cc9ae9c1d55c2023497d626a4d64
Parents: 95d141f
Author: Apekshit Sharma <appy@apache.org>
Authored: Wed Jul 13 14:01:38 2016 -0700
Committer: Apekshit Sharma <appy@apache.org>
Committed: Wed Jul 13 14:15:20 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/8cf6adae/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 7c47dc4..057adca 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)


Mime
View raw message